Socket
Socket
Sign inDemoInstall

hapi-service-template

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-service-template

This is an example of what hapi can achieve


Version published
Maintainers
1
Created
Source

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!

FAQs

Package last updated on 16 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc