Skip to content

edmBernard/simple-http-server-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-http-server-cpp C++ CI

A simple example of a http server using uwebsockets

Dependencies

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

Compilation

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

About

A simple example of a http server using uwebsockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published