Yeoman generator for creating hapijs modules
npm install generator-hapijs> Yeoman generator for scaffolding Hapijs modules
To install generator-hapi from npm, run:
``bash`
$ npm install -g generator-hapijs
This hapijs generator assumes that you want your project structure to look like this:
`bash`
-project
--module
---module-ctrl.js
---module-dao.js
---module-routes.js
---module-test.js
#### Main
Scaffolds out a hapijs project.
`bash`
$ yo hapijs
#### Module
Scaffolds out a module to an existing hapijs project
`bash`
$ yo hapijs:module foo
#### Endpoint
Scaffolds out a new endpoint for an existing module
`bash`
$ yo hapijs:endpoint
To run tests:
`js`
npm test
To install your local version of this package rather than the NPM published version:
`js``
npm link