From the course: Angular: API Communication and Authentication

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Database setup using mLab

Database setup using mLab - Angular Tutorial

From the course: Angular: API Communication and Authentication

Start my 1-month free trial

Database setup using mLab

- [Instructor] Before we start developing our application, we need to set up our database. We will be using MongoDB hosted through mLab, a database as a service platform. We can use their free Sandbox Tier that is great for development. In your browser head over to mlab.com, and go ahead and create an account if you don't already have one. I already have an account, so I'm just going to log in. We are going to create a new MongoDB Deployment. Default settings are okay. Choose a Singlenode plan, clicking on the Sandbox option. Give your database a name you like. You may get an error when naming your database. Try to give it a unique name. Our database is now created. We now need to create a user so that we can log in to the database. Head over to the Users tab, and add a new database user. A username that I would choose is admin. For your database password, choose a strong password. For demo purposes I will be choosing a simple password. Note the MongoDB URI. We will be using this to…

Contents