1.1.0 • Published 8 years ago

generator-urestexpress v1.1.0

Weekly downloads
2
License
-
Repository
github
Last release
8 years ago

generator-uRestExpress

Basic Express REST API for quick and easy start

Basic Info

This repo will help you generate a basic REST Express application. Containing:

  • working CRUD
  • dependency injection
  • routing
  • grunt setup
  • linting with jshint
  • unit tests(mocha,coverage,supertest)

Install Info

Install guide:

  • install yeoman (npm install -g yo)
  • clone repo
  • npm install/yarn install
  • run yo generator(locally: yo /src/index.js)
  • answer the inputs required
  • run the generated Express service ;)

Development

Working commands in generated folder

  • nodemon index.js
  • node index.js

Grunt Tasks

Working grunt tasks

  • grunt jshint
  • grunt test
  • grunt githooks => (add a git hook to run jshint + unit tests before every commit to git)

License

MIT.