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.

Solution: Modify the example page

Solution: Modify the example page - C++ Tutorial

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

Start my 1-month free trial

Solution: Modify the example page

(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…

Contents