This is a Node.js and Ember application that provides:
- flexible forms for collecting files and metadata,
- an expression language for mapping form input to MODS and other XML schemas, and
- routines for packaging and submitting METS deposits to the CDR.
Note: This application also requires therapy-dog-server to work correctly.
Install Client Dependencies:
make deps
Start the client:
make run-client
This application also requires the therapy-dog server app. In a separate terminal, clone that app and follow its readme to for installing it. Then start the API server:
make run-server
Visit http://localhost:4200/forms/test-form in your browser.
Rather than installing dependencies using make deps
as above:
cd client && npm install
start the client:
make run-client
This application also requires the therapy-dog server app. In a separate terminal install and start the API server:
make run-server
Visit http://localhost:4200/forms/test-form in your browser.
This README outlines the details of collaborating on this Ember application.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
ember server
- Visit your app at http://localhost:4200.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.
See server side application to generate documentation.
Start the client:
cd client && npm start
This application also requires the therapy-dog server app. In a separate terminal install and start the API server:
cd server && npm start
Run ember test --server or in a browser go to http://localhost:4200/tests (Runs client side integration tests)
before committing.
The source code for some dependencies is added to the repository:
- for the client, Bower components and anything in the vendor/ directory
Add or remove dependencies separately from code changes. This makes reviewing a merge request a little easier, since we can look at our own code in separate commits.
git log --oneline
should look like this: (most recent at top)
bbbbbbb Remove 'left-pad' dependency from server.
aaaaaaa Implement NIH left-padding to avoid dependency on 'left-pad'.
1234567 Ensure output is left-padded.
abcdefg Add 'left-pad' dependency to server.
bower install --save DOMPurify
git add bower.json bower_components/DOMPurify
git commit -m "Add 'DOMPurify' Bower component to client."
git add vendor/normalize.css
git commit -m "Add 'normalize.css' vendor dependency to client."
ember test --server or in a browser go to http://localhost:4200/tests (Runs client side integration tests)
Copyright 2017 The University of North Carolina at Chapel Hill
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.