hod-foundation v0.0.1
BRP Application project for nodejs
Quick start
Install the dependencies and build the project resources
$ npm installInitiate the server in development mode (Express is used to serve the static resources in development).
$ npm run devThen select one of the following journeys to see the applcation in action
See the development documentation for a complete description of the application and how to maintain and support BRP.
NPM scripts
Start the application in default mode (production). We use Nginx to serve our static resources in production and ci.
$ npm startStart the application with Nodemon in development mode. Debug is switched on and the server restarts when the JS or Sass are recompiled.
$ npm run devRun the unit tests
$ npm run testRun the EcmaScript (ES) linter. Rules are defined in .eslintrc
$ npm run lintRun the jscs style checker. Rules are defined in .jscsrc.json
$ npm run styleAnalyse the quality of the codebase (for results - open ./reports/plato/index.html)
$ npm run qualityCompile the Sass to CSS
$ npm run sassFor details on Acceptance tests
See the package.json for a full list of scripts.
Full list of environment variables