0.0.4 • Published 9 years ago

new-hapi-project v0.0.4

Weekly downloads
4
License
-
Repository
-
Last release
9 years ago

'new-hapi-project' - Generated with the Hapi-Norm Yeoman Generator

Hapi Api

Generated by: Normative Design

Keywords: Hapi, Hapijs

This package uses:

  • Gulp
  • Hapi
  • Lab for testing
  • Mongoose (optional)

Get things running

  • The default gulp task will run tests and start nodemon.
  • gulp test wlll run tests
  • gulp serve will start nodemon

Controller Sub-Generator

To create a new route using the sub generator use the command: yo hapi-norm:controller 'NAME'. This will create a basic restful route for the NAME with intial tests for those routes.

Model Sub-Generator

To create a new model using the sub generator use the command: yo hapi-norm:model 'NAME'. This creates a basic model for NAME.

Config Sub-Generator

To create a new environment configuration using the sub generator, use the command: yo hapi-norm:config 'NAME'. This creates a basic configuration environment for NAME.