Project provides a starting point for building a RESTful API in nodejs using hapijs framework. Project is influenced by hapi-starter-kit with some modifications.
Follows industry standard best practices, and uses latest ES (6/7/8) features.
- Bring your own front-end.
- Plug-in your own Database.
Uses yarn over npm
Install dependencies
$ yarn
Start Server
Set environment variables defined in config/custom-environment-variables.json
$ yarn start
Try GET /ping
to make sure server is up
$ curl http://localhost:3030/ping
Run Tests
$ yarn test
config is used to configure application.
For ex. if APP_PORT
env var is set it can be accessed as config.get('app.port')
. You can read more on custom environment variables here.
This project is licensed under the MIT License