This is a starter project for the Babel & Express combo featuring:
async / awaiteverywhere- Designed for ease of unit-testing
- Service-based folder structure (each folder in
/libis a separate service, with its ownindex.js,datastore.js[if necessary], and a webresource.js) for easier navigation - Configuration is done via environment variables that are required via
.env.examplesee dotenv-safe for more info.
The lib/github service is here to serve as an example of how a service
that has an http resource as well as non-trivial dependencies may be
implemented and tested.
Note: Minimum requirement is Node v4.2.0. Also, this may be a yeoman package in the future.
Development:
npm run dev
Testing:
npm test
Check coverage:
npm run test-cover
open coverage/lcov-report/index.html
Re-run tests when a file changes:
npm run test-watch
Production:
npm install
npm start