DEV Community

Shabhika S
Shabhika S

Posted on

MongoDB Connectivity

Hey All !!

Do Follow the steps Below to be successfull in creating the db and making a proper connection to work with.

1) Go to https://dev.to/new and create an account.

2) Install MongoDB Compass.

3) Sign up With MongoDB Atlas with your Google Account.

4) Create a Cluster with the new Cluster button at right side in MongoDB Atlas.

5) After Creating a Cluster , Load the Sample Data in the created Cluster CLUSRTER0

6) Click on CLUSTER0 , Go to The Collections Tab

7) On the left side , Click Create Database and then fill in the db name and collection name.

8) Click on INsert Documents at the right bottom.

9) Put in the details and click insert.

10) Go to MongoDB Compass and Click on Add new Conenction.

11) Go to Network access , Add your current IP.

12) Go to Database access , create an username and password (As temporary user). Give the user (Read and write role only).

13) Then go the cluster and click connect and select mongodb compass

14) Copy the generated string and replace the and with your own.

16) Now, open Compass and paste the updated string in URI part and click Connect.

17) Wait for the connection to succeed. Once Successfull, create a new Collection.

19) Open the MangoDB shell and DO perform all the CRUD Operations and check with the working.

Thanks to @santhoshnc sir for guiding throughout.
Thanks my buddies @suryaganthan , @thejeswini_shanmugam_1a52, @madhusree_b for your support!!

Top comments (0)