We have two files containing server implementations.
Server.js: API populate data stored in local object. App.js: API populate data stored in mongoDB.
- Install MongoDB
- 'npm install' on this repo.
- start the server.
http://www.mrgeek.me/technology/tutorials/node-js/building-a-rest-api-using-hapi-js-and-mongodb/
That's all.