The C++ IDE juCi++ should be installed.
sudo apt-get install libboost-thread-dev libboost-regex-dev libboost-date-time-dev
sudo pacman -S boost
brew install boost
git clone https://github.com/ntnu-tdat3020/web-server-example
In a terminal:
juci web-server-example
In juCi++, choose Compile and Run in the Project menu.
In a terminal:
cd web-server-example
mkdir build
cd build
cmake ..
make
./web_server # Press control-c to stop the server
Open http://localhost:8080
in a web browser
In a terminal:
telnet localhost 8080
GET / HTTP/1.1
# Press enter twice here
First, stop the web server (if it is running). In juCi++, choosing Kill Last Process in the Project menu.
In a terminal:
cd build
mkdir debug
cd debug
cmake -DCMAKE_BUILD_TYPE=Debug ../..
make
gdb ./web_server # In MacOS, instead use: lldb ./web_server
run
bt