Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.16 KB

README.md

File metadata and controls

65 lines (48 loc) · 1.16 KB

SoluLab-Assignment

The MongoDB Atlas database is being used to perform CRUD (Create, Read, Update, Delete) operations through the utilization of the Node.js and Express.js framework.

Installation

  • Open Terminal
https://github.com/jaylogin9/SoluLab-Assignment.git
  • Log-in to MongoDB Atlas

  • Creating a Cluster

  • Configuring the Cluster:- Add new user and create username and password

  • Getting the Connection String

Requirements

  • Go to the SoluLab-Assignment directory.
cd SoluLab-Assignment.
  • Install npm in local machine.
 npm -init -y
  • npm packages.
npm -i dotenv express mongoose nodemon
  • Include the module in the package.json file
"type": "module", 
  • Include the start script in the package.json file
 "start": "nodemon index"
  • Create .env and paste the Connection String in replace of URL.
MONGO_DB= url
  • Start the server.
nodemon index
  • Server listening on:-
localhost:7000

Postman API documentation.

https://documenter.getpostman.com/view/25879278/2s93CExxCr

License

MIT