A simple example of a http server using uwebsockets
I use vcpkg to manage dependencies
Dependencies :
- cxxopts: Command line argument parsing
- fmt: A modern formatting library
- spdlog: Very fast, header-only/compiled, C++ logging library
- uwebsockets: Simple, secure & standards compliant web I/O
They can be installed with
./vcpkg install cxxopts fmt spdlog uwebsockets
mkdir build
cd build
# configure make with vcpkg toolchain
cmake .. -DCMAKE_TOOLCHAIN_FILE=${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake
# on Windows : cmake .. -DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release