Skip to main content

Mongodb Atlas Database Setup

create an atlas account
Sign up for a Mongo Atlas Account

We will use a free MongoDB cloud service called Atlas.
Follow setup instructions on the mongo site: Getting Started with Mongo Atlas Database

Follow Steps

  1. Register/signup for an Atlas account.

create an atlas cluster
Create a Cluster
  1. Build a Cluster.
  • Select Build a Database. Atlas creates an organization and project for you.
  • Choose the free, shared cluster tier, M0. In the Name input box, enter the name items for your collection name.
  • Uncheck the Automate security setup box.
  • Uncheck the Preload sample dataset box.
  • Choose your favorite cloud provider and the region closest to you.
  • Finally, click on Create Deployment.
  1. Manage the list of trusted IP addresses. Can select 'Allow Access from Anywhere' for access from any IP address. Can enter IP address 0.0.0.0/0 for access from any IP address.
  • Click Add IP Address to add it to the network allowlist.
  1. Manage database users for your cluster. Create a database user. Pick any username and password you want. They will be used when you want to connect to your database. (Save these!)
  • Click Create Database User to create the user.
  1. Connect: Choose the Drivers connection method. From here you will get the connection string you need to connect to your database.

  2. Connection string: Copy the connection string:

atlas copy connection string
danger

Do NOT install Atlas CLI, Docker, or MongoDB locally. You are using MongoDB Atlas (cloud version) in the browser.

  1. Optional: Choose the Add my own Data and enter a database name and collection name.
    The example below was created for the UGAitems class demo.
create a database
Create a Database

atlas database created
We have a database, UGAitems, with a collection, items.