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 - C++ Tutorial
From the course: Web Servers and APIs using C++
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…
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)
Installing Docker1m 29s
-
(Locked)
Installing Atom35s
-
(Locked)
Creating a Dockerfile5m 16s
-
(Locked)
Running a Dockerfile1m 50s
-
(Locked)
Adding a volume2m 33s
-
(Locked)
Building Crow9m 33s
-
(Locked)
Serving the example3m 7s
-
(Locked)
Challenge: Modify the example page31s
-
(Locked)
Solution: Modify the example page2m
-
(Locked)
-
-
-
-
-
-