Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.01 KB

Babel, Express, Starter

This is a starter project for the Babel & Express combo featuring:

  • async / await everywhere
  • Designed for ease of unit-testing
  • Service-based folder structure (each folder in /lib is a separate service, with its own index.js, datastore.js [if necessary], and a web resource.js) for easier navigation
  • Configuration is done via environment variables that are required via .env.example see 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.

Usage

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

License

MIT