Support us on YouTube by Subscribing our YouTube Channel. Click here to Subscribe our YouTube Channel

Friday 11 December 2020

Getting Started with MongoDB Atlas - Part 1

In this article, we will learn How to get started with MongoDB Atlas. MongoDB Atlas is the global cloud database service for the modern application. MongoDB Atlas is the best way to deploy, run, and scale MongoDB In the Cloud.

Let’s Begin:
First of all, visit https://www.mongodb.com/cloud/atlas URL in order to Signup for the MongoDB Atlas Account.


The next step is to Add Organization. Within the organization, we can create projects, invite users, and can set up a billing account as well.
Give a name to your organization and select the MongoDB Atlas as a Cloud Service. Click on Next.
Click on the create organization button in order to create an organization.
Click on the New Project button in order to add the project to the Organization.
Provide a Name to your Project. The project name must be unique within an organization. Click on the Next button.
Click on Create Project in order to add the Project to the organization.
The next step is to Add a Cluster to the Project. Click on Build a Cluster in order to create a Cluster.
Select the Cluster as per your requirement. I am choosing a shared cluster as I am using it for demonstration purposes.
Shared Cluster is for Team learning MongoDB or developing small applications. Click on the Create a Cluster button as shown in the below image.
Select a starter Cluster in Shared Cluster. Pick the Cloud Provider and Region where you want to create a Cluster. Click on the create Cluster button.
It will take around 3 minutes to set up a cluster in the cloud. You can also add another cluster by clicking on the Add a new Cluster button (if needed).
Once the cluster is ready, Connect, Metrics, and Collections button will be enabled.
Click on the Network Access menu and then Add click on the IP Address button as Atlas only allows client connections to a cluster from entries in a Project’s IP Address list.
For Demonstration, I am allowing Access from Anywhere in the IP Address Access List (as we will access the same cluster through .Net Core Application. Click on Confirm in order to proceed.
Once added, you can see the whitelist IP Address in the grid. You can edit or delete any allowed IP Address at any time.
Now click on the Database access menu in order to create a Database user, setup permission, and authentication credentials to connect with a cluster. Click on Add new database user.
Select Password as the Authentication method, type or auto-generate secure password, give read and write to any database. Click on Add user.

All of the added users visible in the grid in the Database user tab. 
Click on three dots (options) in Sandbox Cluster, Click on Load Sample Dataset. A sample dataset which is of around 350 MB in size will be loaded in the cluster.

Sample dataset will be loaded in few minutes.
In next Article, we will connect .Net Core application with MongoDB cluster.



0 comments:

Post a Comment

Subscribe us on YouTube

Subscribe Now

Popular Posts

Contact us

Name

Email *

Message *

Like us on Facebook