This is a simple educational project to demonstrate how to use the Crow C++ framework for creating web servers.
- C++ Compiler (GCC or Clang)
- CMake (version 3.14 or higher)
- Git
This project uses vcpkg for dependency management.
-
Clone the repository with submodules:
git clone --recursive <repository-url> cd cpp-crow-server
If you already cloned it without submodules:
git submodule update --init --recursive
-
Bootstrap vcpkg:
./vcpkg/bootstrap-vcpkg.sh
-
Build the executable:
cmake -S . -B build cmake --build build ./build/server(same thing but old style)
mkdir build cd build cmake .. make ./serverOr... just install CMake Tools extension on VS Code, click build on buttom corner and then run with the play button.
After building, you can run the server:
./build/serverThe server will start on port 18080. You can test it by visiting http://localhost:18080 in your browser.