Join Troy Miles for an in-depth discussion in this video Solution: Create a webpage with data, part of Web Servers and APIs using C++.
(upbeat delicate music)…- [Instructor] How did you do with this challenge?…Hopefully it wasn't difficult.…Here's how I solved it.…I modified the contact route to pass the contact data.…Then I created contact.html by copying contacts.html,…and finally I modified the contact's html markup,…and added the contact data to it.…Let's begin.…
Go back into Atom, and right here,…let's go ahead and modify.…The very first unit we need to do,…is we're gonna say, crow colon colon json…colon colon wvalue…and that's gonna be our dto.…Then I say dto.…The name of the data in the dto…is gonna be contact singular.…And it's gonna be equal to and I'm just gonna copy…everything that is right here…except I don't need that last set of parentheses.…
And the only other thing that I need to do…is I need to force send this through json load.…So json colon colon load…then wrap this parentheses…and so this bson…to json doc.value.view…and that's gonna be our contact data.…And then our return object is going to be getView.…
And the name of the view is contact and the data is in dto.…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.