A boilerplate for Hapi containing Mongoose setup and auth example with JWT
- Clone the git repository
# cloning git repository into a new `newProject` folder
git clone https://github.com/codebynao/boilerplate-hapi-mongo-auth.git newProject
# install project dependencies
cd newProject && npm install
- Setup Environment variables
MONGO_URI=xxx
SECRET_KEY=xxx
- Start Developing
Development version
npm start
Production version
npm run build
- Checkout the project!
Project is running at http://localhost:3000