Join Troy Miles for an in-depth discussion in this video Solution: Modify the example page, part of Web Servers and APIs using C++.
(chiming music)…- [Instructor] So, how'd it go?…Were you able to modify the server?…Here are the three steps I used to solve this challenge.…First, I modified the main.cpp file.…Second, I used make to compile and link the server again.…And finally, I relaunched the server in the container.…Let's check out the steps in detail.…
From Atom, I edit the main.cpp file…and replace Hello, Crow with Hello, Troy.…Don't forget to save the change,…Command + S or Control + S.…Next, I go back to the build directory.…I'm gonna do a Control + C here.…And then I'm going to go back to bash,…and from bash, I'm gonna do a cd…/usr/src…/cppweb…/hello_crow…/build.…
And if I do an LS, I can see…my hello_crow file is still there.…But what I really need to do…is I need to do a make right here,…so I'm gonna type make.…It will relink and rebuild my hello_crow web server.…Then I'm gonna exit from the container,…clear the screen, and let's bring this to the top.…I'm gonna relaunch the server.…Once again, I see the 8080.…
I see that it is serving.…Let's go back to the browser.…
- 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.