Skip to content
Ivaylo Ivanov edited this page Jan 16, 2016 · 3 revisions

Defined in Esrol

Run application in dev mode

$ npm run app

This will start the application and you'll be able to see the output of Eslint in your console. At the same time Nodemon will restart the app on file change and Node-Inspector will be reachable in the browser at http://localhost:8080/debug?port=5858

Run application in production

$ npm run start

This will start your application "forever" using PM2

Shut down from production

$ npm run stop

Tests

$ npm run test

Tests using Mocha, but you can change that from package.json

Tests coverage

$ npm run coverage

I'm using Istanbul and for your convenience you have Travis config and Coveralss script, so you can receive live notifications for build and coverage on every commit. You can change this from package.json as well.

Clone this wiki locally