A boilerplate for REST API's based on hapijs
- Node 7+
- NPM 3+
-
Clone the repo
-
Run
npm install
-
Set NODE_ENV environment variable
- production
- development
- local
-
Create a env file (
local.env
,developement.env
,production.env
) from a copy ofenv.sample
file in project root directory../ |- env.sample |- local.env |- development.env |- production.env
-
Run
node index.js
from root directory of project
- Run
npm install -g nodemon
- Run
nodemon index.js
from root directory of project
- Code linting using ESLINT
- Reload server on changes using Nodemon
- Documentation using HAPI SWAGGER
- Manage environment variables using DOTENV