DEV Community

Karthikeyan
Karthikeyan

Posted on

3

How to setup a Cluster using MongoDB atlas ?

#ai

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

API Trace View

Struggling with slow API calls? 🕒

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay