Create Cluster on MongoDB Atlas

If you haven’t registered, register yourself here.



Once you have logged in successfully, click ‘Build a Cluster’.

Next, You should see a screen like below and select the Starter Clusters:

Now make sure to choose a region which is marked as “Free Tier Available”. Then choose the “MO Sandbox” Cluster tier. This is completely free. We’ll keep the cluster name as RAW.

After a few minutes, you should see a screen like this:



Setup Network Permissions:

To Connect Cluster it requires an IP address, you can use your current IP address or there is one more option you can connect with any IP address.

Set User Permissions:

Now we need to define users and set permissions according to their roles. For this tutorial, we will create a user called “Admin” with password “admin@123”.(For your main project, I would recommend using more secured credentials)

Get URI:

From the options, choose ‘Connect Your Application’ and you will get a connection URI like this:

Copy the URI. Now we’re ready to start coding.