Currently a work in progress.
- Credits
- Prerequisites
- How to start
- How to start with AoT compilation
- Mobile App
- Desktop App
- Running tests
- Web Configuration Options
- License
- site loader
- Project seeded from angular-seed-advanced
node v6.5.0 or higher and npm 3.10.3 or higher.
# install the project's dependencies
$ npm install
# fast install (via Yarn, https://yarnpkg.com)
$ yarn install # or yarn
# watches your files and uses livereload by default
$ npm start
# api document for the app
# npm run build.docs
# generate api documentation
$ npm run compodoc
$ npm run serve.compodoc
# to start deving with livereload site and coverage as well as continuous testing
$ npm run start.deving
# dev build
$ npm run build.dev
# prod build
$ npm run build.prod
Note that AoT compilation requires node v6.5.0 or higher and npm 3.10.3 or higher.
In order to start the seed with AoT use:
# prod build with AoT compilation
$ npm run build.prod.aot
The mobile app is provided via NativeScript, an open source framework for building truly native mobile apps.
npm install -g nativescript
iOS: npm run start.ios
iOS (device): npm run start.ios.device
// or...
Android: npm run start.android
Android (device): npm run start.android.device
- Requires an image setup via AVD Manager. Learn more here and here.
OR...
The desktop app is provided via Electron, cross platform desktop apps with JavaScript, HTML, and CSS.
Mac: npm run start.desktop
Windows: npm run start.desktop.windows
Mac: npm run start.livesync.desktop
Windows: npm run start.livesync.desktop.windows
Mac: npm run build.desktop.mac
Windows: npm run build.desktop.windows
Linux: npm run build.desktop.linux
$ npm test
# Development. Your app will be watched by karma
# on each change all your specs will be executed.
$ npm run test.watch
# NB: The command above might fail with a "EMFILE: too many open files" error.
# Some OS have a small limit of opened file descriptors (256) by default
# and will result in the EMFILE error.
# You can raise the maximum of file descriptors by running the command below:
$ ulimit -n 10480
# code coverage (istanbul)
# auto-generated at the end of `npm test`
# view coverage report:
$ npm run serve.coverage
# e2e (aka. end-to-end, integration) - In three different shell windows
# Make sure you don't have a global instance of Protractor
# npm install webdriver-manager <- Install this first for e2e testing
# npm run webdriver-update <- You will need to run this the first time
$ npm run webdriver-start
$ npm run serve.e2e
$ npm run e2e
# e2e live mode - Protractor interactive mode
# Instead of last command above, you can use:
$ npm run e2e.live
You can learn more about Protractor Interactive Mode here
Default application server configuration
var PORT = 5555;
var LIVE_RELOAD_PORT = 4002;
var DOCS_PORT = 4003;
var APP_BASE = '/';
npm run build.prod
node prep
cd server
modulus deploy
Apache 2.0