"MongoDB is a document database, which means it stores data in JSON-like documents." - Official MongoDB Website MongoDB is one of the most popular NoSQL databases.
- Scalability: by default, non-relational databases are split (or "shared") across many systems instead of only one. This makes it easier to improve performance at a lower cost.
- Flexibility: new datasets and properties can be added to a document without the need to make a new table for that data.
- Replication: copies of the database run in parallel so if one goes down, one of the copies becomes the new primary data source. FreeCodeCamp
MongoDB Atlas is a database hosted in the cloud. MongoDB Atlas handles all the complexity of deploying, managing, and healing your deployments on the cloud service provider of your choice (AWE, Azure, and GCP).
If this is your first time using MongoDB Atlas there probably be a button in the left-hand corner where you can follow the steps. If you've used MongoDB Atlas and have forgotten the steps here they are.
1a. Create a MongoDB Atlas account
1b. Under context, there is a dropdown where you can create a new project
- Create a new cluster
- You can keep everything as the default
- Create a new user on the Database
- You can find this in the Database Access
- Whitelist your IP address
- This can be find this in the Network Access
- Allow access from anywhere (0.0.0.0/0)
- Connect to your cluster
- Go back to your cluster and press connect
- Click on Connect your application
- You will use your URI to connect to your database
- It should look like this "mongodb+srv://:@.mongodb.net/test?retryWrites=true, notice that the user and cluster#-dbname"
Thank You for reading!
If you have any questions or something that looks off to you please feel free to comment. Tell me how you like MongoDB or MongoDB Atlas, I would love to hear your experience with it.