/REST-API

This is a example to show how we can achieve REST api services in nodeJs using MongoDb as backend.

Primary LanguageJavaScript

REST-API

This is a project to learn how to handle REST API request. The tech stack used is MongoDB, Node.js and Express.js.

Other software used for developing this project were POSTMAN for API development and ROBO 3T lightweight GUI for MongoDB

Instructions

  1. Make sure you have Node.js, npm and MongoDB installed on your local machine. The versions I have on my machine at the time of this project are v8.11.3 and v6.0.1 respectively.
  2. Clone the repo to your local machine and navigate to the project.
  3. Run npm install
  4. Run node index.js
  5. Run:
  • Windows: "C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe"
  • Mac: mongod
  1. Locate to locahost:4000\index.html in any browser.