Skip to content

ZhangXichu/my_server

Repository files navigation

Simple http server

Based on C-Web-Server from Bloom Institute of Technology and rewritten in C++.

build this project

in project root firstly start and activate the Python virtual environment:

./setup_venv.sh
source .venv/bin/activate

then install the dependencies in the project root:

conan install . --output-folder=build --build=missing
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
cmake --build build

In folder build/ run make and then use

./server

to run the server and use

./tests

for the tests.

build chatroom

In folder chatroom/

Start and activate the Python virtual environment:

./setup_venv.sh
source .venv/bin/activate

Install dependencies for chat app:

in chatroom/build/ folder

conan install .. --build=missing

run cmake:

cmake .. -DCMAKE_TOOLCHAIN_FILE=build/Release/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release

About

Simple webserver with http and ws spport.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published