nodejs-express-mongodb-api
v1.0.1
Published
Using Express 4.0 Router to build an API, Extended version from scotch.io's code with multiple objects/routes
Downloads
8
Readme
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 [email protected]: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.
Demo URL on Heroku
- https://node-api-rest.herokuapp.com/api
- https://node-api-rest.herokuapp.com/api/employee
- https://node-api-rest.herokuapp.com/api/students