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 - C++ Tutorial
From the course: Web Servers and APIs using C++
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Creating an mLab account1m 40s
-
(Locked)
Uploading JSON data4m 39s
-
(Locked)
Adding the MongoDB C++ drivers3m 52s
-
Querying Mongo data15m 24s
-
(Locked)
Adding dynamic data to a page13m 35s
-
(Locked)
Challenge: Create a webpage with data32s
-
(Locked)
Solution: Create a webpage with data4m 50s
-
(Locked)
-
-
-