Create a MongoDB
Use loopback backend framework and connect to a cloud based non relation database.
Step 1: Create a Database on MongoAtlas
Create account
Step 2: create new deployment for this project.
Create new cluster
Choose Amazon
Choose region: North America: Oregon(us-west-2)(U
Note: choose a free tier
Name your database
Submit order

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

Step 3: Create Database User
Under the Security tab:
Click Database Access
Click on the add new user button
Insert name and password. Remember the username, as it will be used in the next steps.
Choose read and write
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.
Step 4: Add an IP
Under the security tab:
Click Network Access
Click on the add IP address button
Choose allow access from anywhere
Lastly, confirm the changes

Step 5: Create database and collection
Click on the collections button on your cluster dashboard
Click on the add my own data button
Insert database name. Remember this name as it will be used in the next step steps. (final-project)
Insert a collection name
Click Create
Last updated