https://github.com/dyatlovk/ws_server
Web server for C++
https://github.com/dyatlovk/ws_server
cpp httpserver linux-server webserver
Last synced: 3 months ago
JSON representation
Web server for C++
- Host: GitHub
- URL: https://github.com/dyatlovk/ws_server
- Owner: dyatlovk
- Created: 2023-10-16T02:00:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-16T01:57:43.000Z (6 months ago)
- Last Synced: 2025-01-15T08:25:45.531Z (4 months ago)
- Topics: cpp, httpserver, linux-server, webserver
- Language: C++
- Homepage:
- Size: 819 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
Web server for C++.
## Examples
* [Basic](./examples/basic/)
* [Simple http](./examples/http_server/)
* [MVC](./examples/mvc/)# Install
## Requirements
* Git
* Cmake (3.20+)
* C++20### Install
```bash
git clone [email protected]:dyatlovk/ws_server.git
cd ./ws_server
```
Debug version:
```bash
cmake --build --preset=debug-build-linux -jN
make
```Release version:
```bash
cmake --build --preset=release-build-linux -jN
make
```Where **N** is a number of threads to build your project. For max performance on build you should use this simple formula: number of CPU threads + 1. For example. If you have CPU with 16 threads your flag will be -j17.
### CMake options:
| Option | Debug | Release | Description |
| -------------------- | ------------- | -----------| ----------------------|
| CMAKE_BUILD_TYPE | Debug | MinSizeRel | Build type |
| SRV_BUILD_EXAMPLES | On | On | Build all examples |
| SRV_BUILD_BENCHMARKS | Off | On | Build with benchmarks |
| SRV_BUILD_TESTS | On | Off | Build with tests |