This is project created in summer school Yandex. This codebase was created to demonstrate a fully fledged backend application built with userver framework
Use a version of userver that provides <userver/crypto/jwt.hpp>.
Install userver into the system
or clone it from the repository root and install its dependencies:
git clone --branch develop --depth 1 https://github.com/userver-framework/userver.git third_party/userver
The jwt component reads its HS256 secret from REALMEDIUM_JWT_SECRET at
startup. It requires at least 32 bytes. Generate a key once for local use:
export REALMEDIUM_JWT_SECRET="$(openssl rand -hex 32)"Keep the same secret across restarts and replicas. Users with tokens signed with the previous sample key must log in again.
# Run service
make docker-start-service-release
make service-start-release
Run unit and functional tests in docker or local.
make docker-test-release
make test-release
make build-debug- debug build of the service with all the assertions and sanitizers enabledmake build-release- release build of the service with LTOmake test-debug- does amake build-debugand runs all the tests on the resultmake test-release- does amake build-releaseand runs all the tests on the resultmake start-debug- builds the service in debug mode and starts itmake start-release- builds the service in release mode and starts itmakeormake all- builds and runs all the tests in release and debug modesmake format- autoformat all the C++ and Python sourcesmake clean-- cleans the object filesmake dist-clean- clean all, including the CMake cached configurationsmake install- does amake build-releaseand runs install in directory set in environmentPREFIXmake install-debug- does amake build-debugand runs install in directory set in environmentPREFIXmake docker-COMMAND- runmake COMMANDin docker environmentmake docker-build-debug- debug build of the service with all the assertions and sanitizers enabled in docker environmentmake docker-test-debug- does amake build-debugand runs all the tests on the result in docker environmentmake docker-build-release- release build of the service with all the assertions and sanitizers enabled in docker environmentmake docker-test-release- does amake build-releaseand runs all the tests on the result in docker environmentmake docker-start-release- does amake install-releaseand runs service in docker environmentmake docker-start-debug- does amake install-debugand runs service in docker environmentmake docker-clean-data- stop docker containers and clean database data
Manager:
Viktoriia Berkholts [email protected]
Developers:
rumxcola [email protected]
Konstantin Artemev [email protected]
GasikPasik [email protected]
Anna Volkova [email protected]
Nikita Semenov [email protected]
Vadim Romanyuk [email protected]
artemiev.kk [email protected]
Elizaveta Rudneva [email protected]
Maintainer:
Alexander Malkov [email protected]