Using Express 4.0 Router to build an API, Extended version from scotch.io's code with multiple objects/routes
- Node and npm
- Download NodeJS from http://nodejs.org/
- 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....
Test your API using Postman
Thanks to scotch.io for awesome tutorial.