generator-hapi-service
v0.6.1
Published
Yeoman Generator for hapi services
Downloads
38
Readme
hapijs Yeoman Generator
This generator helps you quickly scaffold a production-ready hapijs service. Code generated by this project has been heavily inspired by hapi University and the hapijs style guide.
Maintained by: michaelryancaputo and thody
Usage
New Project
- Run
npm install -g generator-hapi-service
. - From your project directory, run
yo hapi-service
- Follow the prompts
Starting your service
npm start
Testing your service
npm test
Controllers
Generate a new controller (and test) called usersController.js
with an example route configured: yo hapi-service:controller users
Mongoose Models
Generate a new Mongoose model called userModel.js
: yo hapi-service:model user