Building a RESTful API in Node, Express and MongoDB
Using Express 4.0 Router to build an API, Extended version from scotch.io's code with multiple objects/routes
Requirements
- Node and npm
- Download NodeJS from http://nodejs.org/
Installation
- Clone the repo:
git clone git@github.com:shoaibuddin/nodejs-express-mongodb-api.git
- Install dependencies:
npm install
- Start the server:
node server.js
- Make sure to create account for mongoDB @ mongolab.com for Database
- Update credentials and db path in server.js mongoose.connect....
Testing the API
Test your API using Postman
Credit / Thanks
Thanks to scotch.io for awesome tutorial.