DEV Community

Karthikeyan
Karthikeyan

Posted on

How to setup a Cluster using MongoDB atlas ?

Hello everyone,

In this blog , we will be seeing how to create a cluster using MongoDB atlas.

Process πŸš€

Step 1

  • After that , Click on the New project from the top left of the projects dropdown

Step 2

  • Give the project name , go with default options and create a project.

Step 3

  • Now you will be on your created project console. Click on Build a database.

Step 4

  • Now click on the shared cluster and click Create. You will be then navigated to the cluster configuration page. Go with default options and click on Create Cluster.

Step 5

  • For authenticating the connection , enter a user name for eg, admin and autogenerate the password. Keep both username and password safe, as we will be needing it while establishing a connection from any server side framework with your mongodb atlas. Click on Create User.

Step 6

  • For Where would you like to connect from , choose the local environment , click on Add my current IP address and click on Add Entry. Finally , click on Finish and close.

Congratulations πŸŽ‰ πŸ₯³ πŸ₯‚ . You have finally created your shared cluster.

Next Steps πŸͺœ

  1. You can connect your MongoDB cluster to any of the following
    1. MongoDB shell.
    2. Server side application using native MongoDB drivers.
    3. MongoDB Compass.
    4. MongoDB host in VSCode.
  2. You can create a collection and database and play around with it.

Conclusion πŸŽ‰

Thanks for reading everyone. In the next blog , we will see how to create an API with FastApi ( Python web framework ) and MongoDB.

https://media.giphy.com/media/lOJKLVYkNDWN8GoPoA/giphy.gif

Top comments (0)