Task: Setting Up DEV.to and MongoDB Environment
Step 1: Created an Account in DEV.to
Visited the official DEV.to website: https://dev.to
Clicked on “Create account”.
Signed up using GitHub (recommended) or email for easy integration with coding projects.
Set up the profile with:
Display name and username
Short bio and skills/interests
Profile picture (optional)
Verified the account through the confirmation email sent by DEV.to.
Step 2: Downloaded MongoDB Compass
Navigated to the official MongoDB Compass download page:
https://www.mongodb.com/try/download/compass
Selected the appropriate OS (Linux/Windows/Mac) version.
Installed MongoDB Compass using the default installation steps:
Opened the downloaded installer file.
Followed on-screen instructions to complete installation.
Launched MongoDB Compass after installation.
**
Step 3:** Logged in to MongoDB Atlas
Visited MongoDB Atlas website: https://www.mongodb.com/cloud/atlas
Logged in using the MongoDB account (created via email or Google).
Accessed the Atlas Dashboard, which is used to manage cloud-based databases.
Step 4: Created a New Cluster in MongoDB Atlas
From the Atlas Dashboard, clicked “Build a Database.”
Selected:
Deployment type: Shared (Free tier)
Cloud provider: AWS (default)
Region: Nearest to your location (e.g., Mumbai for India)
Named the cluster (e.g., Cluster0 ).
Waited for the cluster to be created (takes a few minutes).
Clicked “Connect” → “Connect with MongoDB Compass.”
Copied the connection string for Compass.
Step 5: Created My First Database
Connected Compass to Atlas using the connection string, clicked “Create Database,” and named it 722824149013 with the first collection as 722824149013.
Now my cloud database is fully ready to store and manage cybersecurity project data!
**Step 6: **Inserting Data Values into the Database
Steps to Insert Data in MongoDB Compass
Open MongoDB Compass and connect to your cluster using the connection string.
In the left sidebar, expand your database — e.g., CyberSecurityDB.
Click on your collection (for example: users).
On the top-right corner, click “INSERT DOCUMENT.”
Click “Insert” to save the document.
Repeat this process to add multiple data entries if needed.
Step 7: Created Database Access
Connected MongoDB Compass to the Atlas cluster using the connection string.
Created a new database named CyberSecurityDB with a collection called users.
Inserted documents to store user information, like name, email, role, and project.
Verified access by querying the collection and ensuring the data was correctly stored.
**
Step 8:** Connect MongoDB Compass to Atlas Cluster
Open MongoDB Compass and click “New Connection.”
Paste your Atlas connection string: mongodb+srv://name:@cluster0.ne4n8n.mongodb.net/
Replace with the password for the dikus user.
Click Connect to establish the connection.
Your databases and collections will appear; you can now view, insert, or query data. âś… Success
Step 9: Perform CRUD Operations via Command Line
Open the MongoDB shell and switch to your database using use .
Insert a document: db.movies.insertOne({MovieName: "SitaRamam", releaseyear: "2022"}).
Read documents: db.movies.find(), update: db.movies.updateOne({MovieName: "SitaRamam"}, {$set: {releaseyear: "2023"}}).
Delete documents: db.movies.deleteOne({MovieName: "SitaRamam"}) to complete CRUD.
Step 10: View Final Output
Open MongoDB Compass or the shell and select your database.
Run db.movies.find() to list all documents.
Verify that inserted, updated, or deleted records reflect correctly.
Your CRUD operations are now successfully completed and visible. âś…
@jeeva_dharshini_p
@aksharaal_13
@divya_dharshinik_0601
@keerthi_laksana_818fef1dc
@santhoshnc
Top comments (0)