From the course: Web Servers and APIs using C++

Unlock the full course today

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

Creating an mLab account

Creating an mLab account - C++ Tutorial

From the course: Web Servers and APIs using C++

Start my 1-month free trial

Creating an mLab account

- [Instructor] Let's create our database. Go to heroku.com and log in, if you're not already. Find the app we created. For me it's infinite falls 24876. Click the link, then go to configure add-ons. In the search box type MongoDB and click on M lab MongoDB. Make sure that sandbox dash free is selected. Then click provision. Now Heroku has created our M lab Mongo database. If we wanna know what the connection string is, all we have to do is go to settings, go to review config vars, and here is the environment variable that will exist on Heroku to give us a connection string to our database. So it's MongoDB underscore uri. Let's hide that. Now if we go back to the overview section, and we click on M lab MongoDB, here's our database information. I'm gonna click on users, and we're gonna say add database user. And what we're gonna do is we're gonna create a user that we can use to manage our database programmatically. So we're gonna say admin, give it a password. Make sure that make read…

Contents