Setting up mLab

Now that we have set up all our local dependencies, we are going to set up mLab account. If you already have a mLab account, you can skip this section. The following are the steps to set up your mLab account:

  1. To create an mLab account, navigate to https://mlab.com/signup/ and create a new account. Verify your email and log into your account.
  2. Now that we have logged in, we will create a new database. From the Home page of mLab, click on Create New button. For our application, we are going to use a free plan database.
  3. On the Cloud Provider page, select as shown in the following screenshot:
  1. Click on Continue to proceed.
  2. Now select a region based on your location. I have selected Europe.
  3. Click Continue to proceed.
  1. In the following screen, provide a database name. I have provided smart-exchange.
  1.  Click Continue and verify your order:
  1. Finally, click on Submit Order. This will take a moment and create a new database for us.
  1. Once the database is created, click on the database name from the Home page and you should land on a screen similar to in the following screenshot:

You will see a couple of warnings. The first one states that this database is not suitable for production and we are aware of it. The second one indicates that we do not have a database admin user. Let's create that one in the next section.

  1. For creating database admin, click on the Users tab and then click on Add new database user and a popup should ope, as shown in the following screenshot:

I have provided the username as admin and password as admin123 for convenience. You can update it as applicable. Then, click on CREATE and we should see a new database user created and the second warning also vanishes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.137.75