1.0.0 • Published 2 years ago

hapi-service-template v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

hapi-service-temaplte - a small API template to get started with a service

This is an example of what hapi can achieve

.example.env

In order to run the service you'll need a .{stage}.env file The default stage is dev

Also, check .example.env with all the needed env variables for your service

Here's the .dev.env file:

PUBLIC_HOST=0.0.0.0:7777

install

npm i

or

yarn

running

npm run develop

or

yarn develop

and then go to http://localhost:7777/documentation to see the swagger

perks

  1. Webpack support
  2. Hapi support
  3. Auth / JWT support
  4. Swagger support
  5. Typescript support
  6. DotEnv support
  7. and many more!