This package provides a basic skeleton for an API development in Nodejs platform with Hapi framework and MongoDB.
- Crud of users
- Authentication with JWT
- Swagger documentation
Make sure you have installed Node 8.9+, Npm 5.4+ and MongoDB.
These commands will download the repository and prepare it for you.
git clone --depth 1 -b master [email protected]:cristianopacheco/hapi-start.git
cd hapi-start
rm -rf ./.git/
git init
git add --all
git commit -m "init"
$ npm i && npm start
- API endpoint is: http://localhost:8080
- API documentation is: http://localhost:8080/documentation
$ npm run test
$ npm run lint
$ npm run lint:fix
- The Standard style guide was used in this project
- Jest was used for unit and acceptance tests
Licensed under the MIT license.