Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

91springboard/hapijs-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hapijs Boilerplate

A boilerplate for REST API's based on hapijs

Requirements

  1. Node 7+
  2. NPM 3+

Instructions

  1. Clone the repo

  2. Run npm install

  3. Set NODE_ENV environment variable

    • production
    • development
    • local
  4. Create a env file (local.env, developement.env, production.env) from a copy of env.sample file in project root directory.

    ./
     |- env.sample
     |- local.env
     |- development.env
     |- production.env
    
  5. Run node index.js from root directory of project

Use nodemon during development

  1. Run npm install -g nodemon
  2. Run nodemon index.js from root directory of project

Features

  1. Code linting using ESLINT
  2. Reload server on changes using Nodemon
  3. Documentation using HAPI SWAGGER
  4. Manage environment variables using DOTENV

Releases

No releases published

Packages

No packages published