Slush generator for creating the foundation of a HapiJS service/webapp. With the original GEUT style.
$ npm i -g slush-hapí-serviceCreate your project folder:
mkdir my_hapi_service && cd my_hapi_serviceAnd then, run the slush generator inside your project folder:
slush hapi-serviceThat's all. The generator will ask some questions, like if you are using a prefix for your projects (scopes are better, but you know).
The generated project contains:
.eslintrc.js--> contains the hapi styleguide eslint rules- Dependencies:
vision--> Template rendering support (plugin)blipp--> Shows plugin routes in consolehandlebars--> A simple template engineboom--> HTTP error codesconfidence--> Project configuration management
├── config
│ ├── demo_config
│ ├── general.js
│ ├── hapi_config
│ └── index.js
├── index.js
├── methods
│ └── index.js
├── plugins
│ └── index.js
├── routes
│ ├── demo
│ └── index.js
├── views
├── test
│ └── index.js
:D