This repository is for userver v2.8 or older versions. For newer versions of userver please use userver-create-service script.
Template of a C++ service that uses userver framework.
To create your own userver-based service follow the following steps:
- Press the "Use this template button" at the top right of this GitHub page
- Clone the service
git clone your-service-repo && cd your-service-repo && git submodule update --init - Give a proper name to your service and replace all the occurrences of "service_template" string with that name
- Feel free to tweak, adjust or fully rewrite the source code of your service.
PRESET is either debug, release, or if you've added custom presets in CMakeUserPresets.json, it
can also be debug-custom, release-custom.
make cmake-PRESET- run cmake configure, update cmake options and source file listsmake build-PRESET- build the servicemake test-PRESET- build the service and run all testsmake start-PRESET- build the service, start it in testsuite environment and leave it runningmake install-PRESET- build the service and install it in directory set in environmentPREFIXmakeormake all- build and run all tests indebugandreleasemodesmake format- reformat all C++ and Python sourcesmake dist-clean- clean build files and cmake cachemake docker-COMMAND- runmake COMMANDin docker environmentmake docker-clean-data- stop docker containers
The original template is distributed under the Apache-2.0 License and CLA. Services based on the template may change the license and CLA.