API-Boilerplates-With-Hapi
API-Boilerplates-With-Hapi copied to clipboard
Comprehensive boilerplates for quick start with Hapi.js (v16.x.x) using Sequelize or MongoDB
Quick start API with Hapi
The goal is to create a production ready boilerplate(s) in Hapi.js (v16) covering the most basic functionalities that occur in every web project like authentication, registration, user management, caching, environment configurations, documentation, etc...
:sparkles: Code-reviewers and contributors are highly welcome! Feel free to open an issue to suggest new functionality, report a bug or just ask a question! :sparkles:
Build
Pre-requisites and/or used versions during development:
- Node.js: v8.x.x
- Redis server: v3.2.x
- MongoDB: v3.4.x
- PostgreSQL: v9.6.x
Boilerplates
As a base I used the opionated hapi-api boilerplate.
For now, there are two major versions of this project: with MongoDB and with Sequelize (any supported RDB). If you want to use something else - you can start from the minimal-base example which has no database attached.
My plan is (eventually) to merge all these versions into one by creating a new db independent service layer.
Tip: If you want to contribute and you're wondering where to start from, you can also check the "//TODO"-s in the code. Install leasot cli tool and run npm run todo to list all tasks and ideas.