An example of a dockerized node API built with hapijs, mongodb and mongoose.
$ npm install
Watch *.js
files and restart the server.
$ node start
Sample user request:
$ curl -H "Content-Type: application/json" -X POST -d '{"name": "Peter Tosh", "password": "admin", "email": "peter@tosh.com"}' http://localhost:9001/user
$ npm test
$ npm run coverage
Run ESLint
$ npm run lint
Start docker and run:
$ docker-compose up