hapi-ts-cli
Hapi Typescript scaffold project
List of features available in this project
- Generate Hapi typescript starter project
- Generate independent controller with route (GET/POST/PUT/DELETE)
- Pre-defined gulp task to compile and run server.
Work in Progress
- Entity creation for Model
- Joi validation for API
- Swagger documentaion integration
Steps to kickstart with hapi typescript scaffold
1.) Install hapi-ts-cli globally
npm install -g hapi-ts-cli
2.) To generate new project use the following command
hapi-ts-cli my-hapi-ts
3.) To create new module
hapi-ts-cli -m user
Generated folder structure
----my-hapi-ts
| gulpfile.js
| package.json
| tsconfig.json
| tslint.json
\---app
| config.ts
| server.ts
\---modules
+---helpers
| DBHelper.ts
| Logger.ts
| Utility.ts
\---user
UserController.ts
UserRoute.ts