Skip to content

pllagunos/cpp-crow-server

Repository files navigation

C++ Crow Web Server

This is a simple educational project to demonstrate how to use the Crow C++ framework for creating web servers.

Prerequisites

  • C++ Compiler (GCC or Clang)
  • CMake (version 3.14 or higher)
  • Git

Building the Project

This project uses vcpkg for dependency management.

  1. 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
  2. Bootstrap vcpkg:

    ./vcpkg/bootstrap-vcpkg.sh
  3. Build the executable:

    cmake -S . -B build
    cmake --build build
    ./build/server

    (same thing but old style)

    mkdir build
    cd build
    cmake ..
    make
    ./server

    Or... just install CMake Tools extension on VS Code, click build on buttom corner and then run with the play button.

Running the Server

After building, you can run the server:

./build/server

The server will start on port 18080. You can test it by visiting http://localhost:18080 in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors