Create a MongoDB

Use loopback backend framework and connect to a cloud based non relation database.

Step 1: Create a Database on MongoAtlas

  1. Create account

Step 2: create new deployment for this project.

  1. Create new cluster

    1. Choose Amazon

    2. Choose region: North America: Oregon(us-west-2)(U

      • Note: choose a free tier

    3. Name your database

  2. Submit order

Once the cluster is created, the following dashboard should appear:

Step 3: Create Database User

Under the Security tab:

  1. Click Database Access

  2. Click on the add new user button

  3. Insert name and password. Remember the username, as it will be used in the next steps.

  4. Choose read and write

  5. Click add user button

In this step you created a user to manage your database. You will need this info to connect the server to the database and manage it.

Note: This is different than your MongoAtlas user account

Step 4: Add an IP

Under the security tab:

  1. Click Network Access

  2. Click on the add IP address button

  3. Choose allow access from anywhere

  4. Lastly, confirm the changes

Step 5: Create database and collection

  1. Click on the collections button on your cluster dashboard

  2. Click on the add my own data button

  3. Insert database name. Remember this name as it will be used in the next step steps. (final-project)

  4. Insert a collection name

  5. Click Create

Last updated