generator-service

1.0.1 • Public • Published

generator-service

Yeoman generator for REST services using express or koa

Features

  • Choose between express and koa as application frameworks
  • Choose between mocha and jasmine as test frameworks
  • When using mocha, choose between expect.js, should.js and chai as assertion libraries
  • Enables CORS
  • Enables graceful server shutdown
  • Creates a health check endpoint (e.g. for use with registrator and/or consul)
  • Creates a Dockerfile based on the alpine-node image
  • Creates npm scripts for running, testing, building and live-reloading/testing of the application

NOTE: This service template is by default optimized for use with node.js 4.x but can be easily adapted to earlier versions.

Getting Started

To install yeoman from npm, run:

npm install -g yo

To install generator-service from npm, run:

npm install -g generator-service

Finally, initiate the generator:

yo service

License

MIT

Package Sidebar

Install

npm i generator-service

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ahelmberger