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 torina4@yandex.ru
Developers:
rumxcola rumxcola@yandex.ru
Konstantin Artemev rumxcola@yandex.ru
GasikPasik sarbash2004@gmail.com
Anna Volkova anna.mikhaylova09@yandex.ru
Nikita Semenov nikitasemenov0388@gmail.com
Vadim Romanyuk vadprof10@gmail.com
artemiev.kk artemiev.kk@infotek.ru
Elizaveta Rudneva el1zarudneva@yandex.ru
Maintainer:
Alexander Malkov alexiprof@userver.tech