MongoDB Guide | Getting Started
Published: 2023-02-04 01:02:09

## MongoDB Guide | Getting Started
by Jacob Pelletier
Contact me for suggestions, comments, or just to say hello at jacob@yankeedo.io! 👋


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cp38knes0qhkg6i6hmct.jpg)

**Follow me on my journey in learning [MongoDB](https://www.mongodb.com/).** 

I highly recommend checking out [Mongo University](https://learn.mongodb.com/?_ga=2.83089430.1471118752.1675467284-1993933025.1675122350)!

---

## What will we be covering in this guide
1. Signing up for Atlas
2. Setting up an Atlas DB
3. Setting up connection options
4. Uploading data to our DB

![click a mouse](https://media1.giphy.com/media/rfQaHjdyOC7HWkafoF/giphy.gif?cid=ecf05e4784azizf1apfmxx6xdxmi4hgyyhp4e2fm5kk0c7qo&rid=giphy.gif&ct=g)

## What is MongoDB Atlas?

I will be using MongoDB Atlas instead of Mongo locally during these guides. 

Developer data platform.

Database as a service (DBaaS) at its core.

Atlas manages database for you. Databases have built in replication, known as a replica set. A replica set is a group of servers that hold your data. They ensure data redundancy and high availability. 

There are two types of database deployments, serverless and dedicated.

Serverless scales on demands and only charges for what you use. Good for variable traffic or sparse usage over time. Often a simpler choice if there are a lot of unknowns. 

Dedicated has larger more dedicated resources and more security features and auto-scaling. The preferred choice for production workloads. 

Atlas includes operational insights, backups with point-in-time restore, and online archive. 

## Getting Started

Sign up and sign into the [Atlas platform](https://www.mongodb.com/atlas/database).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4cgj4uprdzzl674rzxoq.png)

Create a new project
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uyupwba9p3tgu0divjl4.png)

Name your project
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/coxzorojuc1tcgptteei.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6cldb0irxz4s6bjg4jo.png)

Creating a database
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y3uuizhnr8zyigj3mrf.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xl1othm18ceu5j5wyld6.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5pk71tgwj2zamki93eq.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1zh0q6d8kfwtzss0q0p5.png)

![unlock](https://media2.giphy.com/media/3orieNvRatmSvXDk2s/200.webp?cid=ecf05e47of4a2zpbzjlxgpjbnyfzhumc70doion4qpckaxie&rid=200.webp&ct=g)

Create a DB user
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bf5f761355nv65iab6dj.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kz78nwlrfkr9fj19ujzk.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jkb7sesgbd6m6e3erbg9.png)

Behold our beautiful new DB!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vux1rlj5adko5fmf8zil.png)

Load sample data to practice with in the next guide. This will take some time.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7m2bgjxijewqdlr714iv.png)
 
**See you in the next guide!**
Next guide will be posted soon!
![see ya](https://media0.giphy.com/media/l0HlDQue4hBGFbQPu/giphy.gif?cid=ecf05e47v445ny31x5pp4aflfexy7hlw3xp3kpgys4f5ey76&rid=giphy.gif&ct=g)