Skip to content

recelsus/Template-Drogon-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drogon Mock Server Template

Minimal Drogon-based mock server providing a handful of JSON endpoints for local testing.

Features

  • GET / returns a JSON message indicating the server is running.
  • GET /health, /health/live, /health/ready expose basic health probes.
  • GET /echo responds with the request method, path, and query parameters as JSON.
  • POST /echo echoes the request body and mirrors the Content-Type header when present.

Build Requirements

  • C++17 compatible compiler
  • CMake 3.16 or newer
  • Drogon library available on the system

Build & Run

mkdir build && cd build
cmake ..
make
./drogon_mock_server

The server listens on port 8080 by default. Use curl or any HTTP client to exercise the endpoints.

compile_commands.json is generated in the build directory and symlinked to the project root after each build to assist clangd and other tooling.

About

C++17 Web server built with the Drogon framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors