https://github.com/landiluigi746/cpp-backend-template
Small C++ backend template with CMake as build system, vcpkg as dependency manager, Crow as web framework and Docker support
https://github.com/landiluigi746/cpp-backend-template
backend backend-template cmake cpp cpp-template crowcpp docker template-project
Last synced: 29 days ago
JSON representation
Small C++ backend template with CMake as build system, vcpkg as dependency manager, Crow as web framework and Docker support
- Host: GitHub
- URL: https://github.com/landiluigi746/cpp-backend-template
- Owner: landiluigi746
- License: mit
- Created: 2025-05-13T11:04:42.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-23T08:04:23.000Z (about 1 year ago)
- Last Synced: 2025-06-04T11:52:59.592Z (12 months ago)
- Topics: backend, backend-template, cmake, cpp, cpp-template, crowcpp, docker, template-project
- Language: CMake
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp-backend-template
This is a small C++ backend template that uses CMake as build system, vcpkg as dependency manager, Crow as web framework and features Docker and Docker compose support.
It also provides already defined Microsoft-like formatting options with clang-format.
## Dependencies
To use this template you need:
- a C++ compiler (C++23 is used by default, edit [CMake config](CMakeLists.txt) if you want to use a different standard)
- CMake (3.14.0 >=)
- vcpkg
- Docker and Docker compose
- clang-format (optional, used to format code)
## Getting started
To get started with this template, either clone it or generate a new repo from this one.
Then, create a ```.env``` file with env variables (see an example configuration [here](.env.sample)).
To prepare the local environment, run the following command:
```bash
make devenv
```
Then, to start all containers with docker compose:
```bash
make up
```
To stop all containers with docker compose:
```bash
make down
```
To see logs from the container:
```bash
make logs
```