This is a responsive dictionary web-application for the FirstVoices language assets that uses Nuxeo ECM as a back-end.
This web app is built using the following:
And interfaces with a Nuxeo server, at the moment using custom schemas and configruation specific to FirstVoices.
For additional dependencies see package.json.
This app has been scaffolded using gulp-starter.
You'll need NodeJS, and Git. Clone this repo from GitHub, change directory to the repo root.
- Run
npm install -g gulp
. - Run
npm install
. - Run
gulp
to start a Node server. Defaults to localhost:3001. - Install Nuxeo and setup your server, including enabling Cross-Origin Resource Sharing (CORS).
- Rename /app/assets/javascripts/configuration/sample.local.json to local.json and update that file.
- On some machines installation of certain modules may not work as part of
npm install
. If that is the case, install missing modules individually (e.g.npm install imagemin-jpegtran
, after trying to rungulp
).
In order to build for production:
- Run
npm install -g gulp
. - Run
npm install
. - Run
gulp build:production
. - Copy generated files in /public folder to your webserver.
Note: Remember to configure your web application to rewrite all requests to the root path, in order for Push State to work.
- Install dependency using
npm install package --save
ornpm install package --save-dev
- When ready, run
npm shrinkwrap
to lock dependencies.
The data and code in this repository is licensed under multiple licenses.
-
All code in the /app directory is licensed under the Apache License 2.0. See LICENSE.
-
All gulp-starter code in /gulpfile.js directory is licensed under MIT License (MIT). See gulpfile.js/LICENSE.