Getting Started with MongoDB Atlas! Part 1

Umair Mukhtar
3 min readAug 26, 2022

--

What is MongoDB Atlas?

MongoDB atlas is a cloud interface for the famous NoSQL database , MongoDB , that makes it super easy to host your database on cloud without having to worry about any configurations and installations.

How to Setup your database on MongoDB atlas?

First of all you will need to create a free account on MongoDB Atlas , once you are done , you will see this screen , that displays all the organization , in mongodb atlas a database has to be associated with an organization

Getting Started with mongodb atlas by Umair Mukhtar

Creating an Organization!

While you are creating an organization it will give you option to choose a cloud service , you have to choose mongodb atlas for now , we will talk about cloud manager on some other day 😀. After this we will create a project for our database.

Getting Started with mongodb atlas by Umair Mukhtar

Creating a Project

Creating project is pretty easy you just need to click on the organization for that we created in the above step , click on the create project button and provide a name for the project. Now that we have created a project now we will build a database.

MongoDB Atlas Umair Mukhtar

Building a Database

When you will open the project that you created in previous step it will show you a button to create the database click on it.

After clicking on build database button it will allow you select a pricing option , for now you can click on free plan , (you can also click on server less if you are rich 😂) , having done this , it will show you many server hosting options to choose from , you can select any provider and region of your choice

Creating an admin user for Database

Next we will need to create an admin user for accessing the database , please save it somewhere because it later on it will be used to access connect to the database.

IP Whitelisting

Now that you have created the database user we will need to whitelist the IP address of the server which will be access the database , for now you can add 127.0.0.1 or local host, you can add as many IP addresses as you want.

Congratulations you have successfully created your database on MongoDB , in next part we will learn how can we connect the database to our node js app and create collections , till then take care.

--

--

Umair Mukhtar

Umair Mukhtar is founder of Aen Studios 300,000+ downloads, i like to develop mobile applications and ERP using ODOO