- package.json, server file, .gitignore
- Install hapi
- Install inert
npm start
- Using Heroku's port
- Creating Heroku app
- Create a basic GET and POST api
- POST with CURL -
curl --data "description=wat" http://localhost:8000/api/todo
- Add PUT and DELETE
- PUT with CURL -
curl -X PUT -d isComplete=false -d description=new http://localhost:8000/api/todo/538350
- Install joi
- Create validation schema
- Install boom
- Use Boom for errors
- Get Mongo running
- Install
mongodb
npm package - Remove
PUT
because we don't need it