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 Project
then head over to theClusters
tab 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
Connect
button.
- 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 Application
out 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 & ReplacemyFirstDatabase
with the name of the database that connections will use by default.
- Note: You can Access your database by going into the
Collections
tab.Metrics
Tab will show you seperate charts and graphs providing the info stored in your database
Thanks! u helped me <3