This is a minimally opinionated boilerplate for web services built on top of express.js.
Out of the box, it extends express with:
- Worker management (via cluster)
- Explicit error types (via http-error-factories)
- JSON logging (via bunyan)
- Configuration management (via confilter)
...testing utilities:
- Code linting (via jshint)
- Functional tests (via supertest-session and mocha)
- Code coverage (via istanbul)
- Templates for travis-ci and coveralls.io
...and npm tasks for supporting all of the above.
It doesn't make assumptions about view frameworks, authentication strategies, sessions, security, data stores, or much anything else--just pick the tools that suit your application's needs.
$ npm install
Generate configuration:
$ npm start
Lint and run test suite:
$ npm test
Generate code coverage report:
$ npm run cover
MIT