During development it is recommended to start two terminals with following commands:
grunt dev
- start nodemon with debugger. Debugger is available on: http://localhost:1337/debug?port=5858grunt watch
- runs jshint and unit tests on every file change
On production environment start application with supervisor:
npm start
- same assupervisor app/start.js
In order to change application environment use:
-
Windows:
set NODE_ENV=production supervisor app/start.js
-
Unix/Linux:
NODE_ENV=production supervisor app/start.js
- Everything what is needed for advanced rest api: routing, content negotiation, error handling, versioning.
- Configuration per environment
- Logger per environemnt
- Unit tests
- Integration tests