0.0.1 • Published 3 years ago

code-templatr v0.0.1

Weekly downloads
16
License
ISC
Repository
-
Last release
3 years ago

Typescript Hapi Template Generator

A boilerplate template for a Typescript/ Hapi server

Quick Start

- `npm i @uphilgood/ts-hapi-template-generator -g`
- Run `generate-ts-hapi-template` from anywhere 
- Select the `typescript-hapi-project` to bootstrap your Typescript/ Hapi server!
- Follow prompt to give the project a name
- cd into project
    - run `npm run start`
    - Server will be running on `localhost:3000`
    - Swagger docs at localhost:3000/documentation

Includes:

- Typescript boiler plate for build process in the form of `tsconfig.json` 
- Useful configurations and script such as hot reloading with `nodemon` and `rimraf` for cleaning and compiling production builds 
- Implementation of Hapi server and example route to `/` 
- Joi validation 
- Hapi Swagger integration to serve API documentation