As Many people were having troubles on generating an MongoDB Cluster Database URL. Just follow these steps, and you are good to go!
Note : Please read The Official MongoDB Documentation since they have actual docs and details about how MongoDB actually works.
- In order to create a database, You need to create an account in the cloud. You can Register through Here
- Once, you've registered yourself and made an account in the cloud. You can click on
New Projectthen head over to theClusterstab and hit onBuild a Cluster
- As you created your first Cluster, You will need to whitelist your IP in order to connect to the database. First Click on the
Connectbutton.
- Then go ahead and WhiteList your IP by Adding it, Then create a Username and Password (You'll need them in order to connect to the db)
- Since we are focused on creating the Application in order to get a database URL, Click on
Connect your Applicationout of the three
- Once you hit
Connect your Application. You will see an option to select your driver and the version. In my case, I am usingNode.js.
- After selecting your Driver and the Version, MongoDB will auto generate you a link for the database. You just need to Replace
<password>with the password & ReplacemyFirstDatabasewith the name of the database that connections will use by default.
- Note: You can Access your database by going into the
Collectionstab.MetricsTab will show you seperate charts and graphs providing the info stored in your database







Wow thanks! This was a lot of help!