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.
- 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
- 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
https://documenter.getpostman.com/view/25879278/2s93CExxCr
MIT