1.7.3 • Published 6 years ago
hapi-gen v1.7.3
hapi-generator
Generator for HAPI based projects
Install:
npm install -g hapi-gen
Use:
> hapi-gen
// or
> hapigen
// or
> hgen
// follow the prompts
The application as the name suggests, generates hapi.js framework based:
- micro-services,
- service plugin
- web application (isomorphic)
- web widget (essentially plugin)
skeletons.
Supported databases:
- mongodb,
- mysql,
- elasticsearch
Supported view-engines:
- dust
Application creation:
Choose either service-app or web-app. After among others providing a name, the generator will create a folder from the name, where the generator ran from. Additional plugins or widgets can be generated from running inside the application folder.
Plugin / Widget creation:
Choose either service-plugin or web-app-widget. After providing a name the generator will create the component inside the plugins (services) or the widgets (web-app) folder.