How to use MongoDB Atlas to manage your server and data
In a previous article, the basic concepts of MongoDB and its components like database, collection, and document are introduced. Besides, we have introduced how to start a Docker container for a MongoDB server locally and how to perform basic CRUD operations in it with simple code snippets. You shall be able to work with MongoDB with confidence now.
In production, it is much more convenient and robust to use a hosted MongoDB server rather than a local one. You don’t need to worry about the infrastructure, security, and scalability of your servers. A popular choice is to use MongoDB Atlas, which is a multi-cloud database service created and maintained by the same people that build MongoDB. MongoDB Atlas has a free tier which is good for learning purposes. You can even use the free tier for some small projects if you only have a small amount of data.
To get started with MongoDB Atlas, go to the official website of MongoDB.
If you have already used MongoDB Atlas before, you can click “Sign in” to log in. Otherwise, click “Try Free” to create an account with MongoDB Atlas. You can enter your email, name, and password to create an account explicitly. Alternatively, you can sign up with your Google account which is more convenient. Please follow the instructions for each way to create an account and log into MongoDB.
After you are logged in your will land on the Welcome page and can set some initial preferences for your project:
Then you need to choose a deployment option to get started. For learning purposes, we will choose the Free and Shared deployment. Even if you need to choose a Dedicated or Serverless deployment, it is recommended that you try out the Free tier first to get familiar with MongoDB Atlas before using it for production.