How to Create an MongoDB Atlas Account?

Introduction

MongoDB Atlas. Why am I Choosing this Topic?

Last week, I wrote two articles. the links here,

  1. https://www.c-sharpcorner.com/article/node-js-introduction-features-installation-guide-and-benefits/
  2. https://www.c-sharpcorner.com/article/set-up-the-node-environment-and-run-a-simple-node-server-project/ 

In my previous articles, I touched Node-js. It is the most popular and world widely used JavaScript framework. It is offering high-speed applications with performance for the developers. Most Node.js developers prefer using NoSQL databases. Because NoSQL databases can keep up with the high speed offered by Node.js at the same time, it is giving high performance. The combination of the Node Js with MongoDB CRUD is very powerful. Node.js and MongoDB form powerful technology; both are Open source, Which offers fast development and efficient performance for the users. 

Nowadays, all concepts are moving to the cloud base. In the Current situation, We have to learn the Clout base concept. I think it is the right way to continue my article in MongoDB Atlas. 

Now, let’s get started!

What is MongoDB Atlas?

MongoDB Atlas is a cloud-based, open-source, and NoSQL database. MongoDB has a lot of features. All the features provide Atlas, automation of administrative tasks such as database configuration, infrastructure provisioning, patches, scaling events, backups, and more. Its core is our fully managed cloud database for modern applications. You can choose the cloud service provider of your choice (AWS, Azure, and GCP).

How to Create an Atlas Account?

Now, let’s create an account on MongoDB Atlas.

Step 1. Visit the official MongoDB Atlas page to create a free-tier account.

MongoDB Atlas

Picture 1. Official MongoDB Atlas Address( https://www.mongodb.com/atlas/databas )

Step 2. Click on Try Free, which will take you to a registration page. Create your account here by filling in details or Sign Up using Google.

Mongodb filling in details or Sign Up using Google.

Picture 2. I’m Sign Up using Google

Step 3. Read and Accept the terms and conditions.

MongoDB Term and conditions

Picture 3. I Accept the terms and conditions and press the Submit button.

Step 4. Provide details of your project and press the Finish button.

Welcome to Atlas

Picture 4. Three types of questions are there in the picture; give a suitable answer on your site

Step 5. Choose and deploy a cloud database from the given types. These are low-cost and efficient to use. For now, let us choose the free shared tier.

MongoDB Deploy the database

Picture 5. By visiting our current cluster, You notice that MongoDB Atlas has selected the M0 Sandbox by me. You Can choose Provider with Region and Give the Cluster name. Also, If you once create the  Cluster, you can not change it, and through registration, MongoDB Atlas creates a default organization for us. Wait for the cluster to be created; it takes about 0 - 1 mins.

Step 6. You will be able to see all the created Clusters.

MongoDB Deployment

Picture 6. You can navigate to the current cluster to view its details.

Now it's time to Whitelist our Connection IP Address of the MongoDB Atlas Cluster.

How to Add Your IP Address in MongoDB?

An IP Address provides a unique identifier to the network connecting device. Atlas allows only clusters from trusted IP addresses to get connected. 

The following steps are used to Whitelist IP Address Connections.

Step 1. Click on Connect in the cluster dashboard.

MongoDB Database Deployment

Picture 7

Step 2. Click on Add Your Current IP Address.

Connect to MongoDB

Picture 8. Add a connection IP address; just I choose the  Allow access from anywhere 

Step 3. Click on Add IP Address

Add a connection IP Address MomgoDB

Picture 9. If you choose the Allow access from anywhere Option, the IP Address will appear as 0.0.0.0/0

How to Create a MongoDB User for Your Cluster?

Step 1. Add a username and password in the Create Database User section.

Create a Database User

Picture 10. Create Database User

Step 3. Click on Create Database User.

Connect to MongoDB

Picture 11. Successfully Created Database User

How To Insert A Sample Database And View Data In Your Cluster

Step 1. Click on the triple dots in the cluster dashboard. And Click on the Load Sample Dataset

MongoDB Database Deployment

Picture 12. Wait for the Sample Dataset to be created; it takes about 5 - 7 mins.

Step 2. Click on Browse Collection in the cluster dashboard. And View the Sample Dataset.

Now you will see the nine databases in your cluster.

MongoDB Cluster

Picture 13. Load the Sample Dataset; Sample Dataset has 09 Databases and 23 collections.

Database Services

Picture 14. Filter bar to search for specific documents.

MongoDB Apply Database Services

Picture 15. Loading Sample Data to MongoDB Atlas Cluster  Now that you have imported data into your cluster, you can now view and modify them.

MongoDB Document Modification

Picture 16. Now You can use the Data Explorer’s Filter bar to search for specific documents, edit documents then save your updates.

Summary

In this article,  We learned What is MongoDB Atlas and How to Create a MongoDB Atlas Account. I hope this article helps those Who have an interest in self-learning. Keeping in touch with me,  I'll publish Advance level articles in node-js and connect to MongoDB for beginners.


Similar Articles
Adelanka (PVT) LTD
Globally based Software Developing & Data Processing Company