generator-hapi-service

0.6.1 • Public • Published

hapijs Yeoman Generator Build Status

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

Package Sidebar

Install

npm i generator-hapi-service

Weekly Downloads

1

Version

0.6.1

License

MIT

Last publish

Collaborators

  • flashpunk
  • thody