MEAN Stack
  • MEAN Stack
  • Getting Started
    • Course Requirements
  • Setup Local Development Environment
    • Git and Gitbash Installation
    • VSCode Installation
    • Node Installation
    • VS Code Live Share
  • Web and Javascript Fundamentals
    • Day One - Intro
    • WK1: Web Fundamentals
      • Let's Git it!
      • HTML, CSS, JS
      • Reading Code & Fixing Errors
        • Challenge 1 - Reading Code & Fixing Errors
        • Challenge: Reading Code and Fixing Errors
      • Homework WK1
    • WK2: JS Versions
      • ES6 and beyond
      • TypeScript
      • Palindrome Challenge
      • Problem Solving
      • Homework WK2
  • Angular
    • WK3: Angular
      • Intro to Angular
        • Angular CLI Install
        • Angular Architecture
          • App Module
          • Modules Explained
          • App Component
          • Angular Files
          • Recap
      • Components & Data Binding
        • Component Boiler Plate
        • Creating a Component
        • Using A Component
        • Component's and CSS Styling
        • Data Binding Challenge
        • User Input with - [(ngModel)]
        • Login Page Challenge
      • Routing
        • Creating A Routing Module
        • Adding Routes
        • Router Outlet Setup
        • Using the Router
        • Routing Challenges
      • Homework WK3
    • WK4: Angular Midterm Project
      • Structural Directives
      • Error Debugging in Angular
        • Tour of Errors Challenge
        • Angular Errors Challenge
      • Intro to Services
      • Midterm Project: Bank Application
    • WK5: Data Flow
      • Intro to API
      • HTTP Requests to API
      • Higher-Order Functions
      • YouTube API
      • Homework WK5
    • Angular Cheat Sheet
  • Backend - Loopback & Mongo
    • WK6: Intro to Backend
      • Announce Final Project
      • Intro to RESTful API
      • Install Loopback
      • Create a MongoDB
      • Connect Loopback to MongoDB
      • Introduce API Explorer
      • Create User Models
    • WK7: Backend Auth & Database Setup
      • Register
      • Login
      • Setup Token Authentication
      • Create Persisted Models
      • Access Control Settings
    • WK8: Final Project Relations
      • Relations
  • Deployment
    • Big Picture
    • Deploying Loopback
      • Learn Environment Variables
      • Using Environment Variables in Loopback
      • Production Environment
      • Deploy to Heroku
        • Create a Heroku App
    • Deploy an Angular App
      • Deploying an Angular App to Netlify
Powered by GitBook
On this page
  • Step 1: Create a Database on MongoAtlas
  • Step 2: create new deployment for this project.
  • Step 3: Create Database User
  • Step 4: Add an IP
  • Step 5: Create database and collection
  1. Backend - Loopback & Mongo
  2. WK6: Intro to Backend

Create a MongoDB

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

PreviousInstall LoopbackNextConnect Loopback to MongoDB

Last updated 5 years ago

Step 1: Create a Database on

  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

MongoAtlas