Basic setup for HapiJs with Typescript
- Authentication (hapi-auth-jwt2)
- Logging (hapi-pino)
- Validation (joi)
- Database (mongoose) (want mongodb checkout on branch mongodb)
- Documentation (hapi-swagger)
- Test (Lab with Code)
- Clone the template
git clone https://github.com/jjdechavez/hapi-typescript-template && cd hapi-typescript-template
- Install the dependencies
yarn
ornpm install
- Run
yarn start:watch
for development. - Open a browser and put this on your url
http://localhost:5000
- For documentation, access the url
http://localhost:5000/documentation