Step 1: Create an Account on Dev Community
Go to https://dev.to/
Click Sign Up and register using GitHub, Twitter, or Email.
Verify your account and start exploring the platform.
Step 2: Download MongoDB Compass
Visit https://www.mongodb.com/products/compass
Download and install Compass for your operating system.
Step 3: Create an Account on MongoDB Atlas
Go to https://www.mongodb.com/cloud/atlas.
Click Try Free or Sign-Up using Google or Email.
Step 4: Create a New Cluster
After signing in, create a new cluster in MongoDB Atlas.
Step 5: Download Sample Datasets
From the Atlas dashboard, download the required sample datasets.
Step 6: Create a New Database
Use the Atlas interface to create a new database.
Step 7: Insert a New Document
Add a new document to the database you just created.
Step 8: Connect MongoDB Atlas with MongoDB Compass
To connect, you’ll need your URI, username, and password.
Create a new database user in Atlas and copy the connection string (URI).
Open MongoDB Compass, paste the URI, and connect to your cluster.
Step 9: Perform CRUD Operations
Insert a document: db.sample.insertone({name:"Aksharaa",rno:"002"})
Read a document: db.sample.find()
Update a document: db.sample.updateOne({name:"Aksharaa"},{$set{department:"CYS"}})
Delete a document: dn.sample.deleteOne({name:"Aksharaa"})
Step 10:Final result
@santhoshnc
@dishanyaa_shrii_k_m
@divya_dharshinik_0601
@jeeva_dharshini_p
@keerthi_laksana_818fef1dc
Top comments (0)