4.2 MongoDB Verification

MongoDB is the database used in our project. It is a modern and flexible database system that stores data in a format similar to JSON documents.

The reason for using MongoDB in our project is its flexibility and scalability. It allows us to store and retrieve data in a way that suits our project's needs. MongoDB's document-oriented structure makes it easy to work with data that varies in structure and doesn't require a fixed schema.

4.2.1 MongoDB Keys: Account Creation and Cluster Setup

Create a MongoDB account or Log in to MongoDB. Below are the given links for Sign up and Log In.

Signup: https://www.mongodb.com/cloud/atlas/register

Login: https://account.mongodb.com/account/login

  1. After logging in for the first time, kindly complete the Initial setup by adding details like ‘Not Sure’ as shown in the image below.

    NOTE: do not create a cluster, It will be created automatically in the process.

  2. Now, click on the ‘Project Settings’ as shown in the image below.

  3. After that, copy the project ID as shown in the image below and add it to the MONGODB_PROJECT_ID in the form field.

  4. Click on the ‘Access Manager’ tab in the sidebar, select the API Keys tab, and then click on the ‘Create API Key’ button as shown in the image below.

  5. Now, add ‘Description’ for your API key (You can add anything in the description.). Following that, select all the ‘Project Permissions’ from the dropdown and click on the ‘Next’ button as shown in the image below.

  6. You get a public key and a private key as shown in the image below. Add MONGODB_PROJECT_PUBLIC_API_KEY which you get from ‘MongoDb Project Public Key’. Add MONGODB_PROJECT_PRIVATE_API_KEY which you get from the ‘MongoDb Project Private Key

  7. Now, click on the ‘Done’ Button.

  8. Now submit all the values gathered in the installation form.

  9. Now fill in the cluster name and select the cluster region as provided in the image below.

    NOTE: the cluster created from here will be a free-tier cluster. You can upgrade your cluster later.

Last updated