Skip to content

REST API приложение на C++ & Oat++ (отборочное задание для школы бэкенд разработки 2022)

Notifications You must be signed in to change notification settings

NikitaSemenov1/oatpp-rest-ybs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex backend school test project

Overview

Project layout

|- CMakeLists.txt                        // projects CMakeLists.txt
|- src/
|    |- service/                         // business logic
|    |- controller/                      // Folder containing MyController where all endpoints are declared
|    |- dto/                             // DTOs are declared here
|    |- AppComponent.hpp                 // Service components
|    |- App.cpp                          // main() is here
|    |- DabaseComponent.hpp              // Database components
|    |- ErrorHandler.hpp                 // Custom error handler. Responds json
|    |- Serializers.hpp                  // DTO serializer
|- sql/                                  // migrations
|- utility/install-oatpp-modules.sh      // utility script to install required oatpp-modules.
|- resources/config.json                 // configuration file with configuration profiles
|- Dockerfile                            // Dockerfile
|- docker-compose.yaml                   // Docker-compose with this service and postgresql 

Build and Run

Using CMake

Requires

  • oatpp module installed. You may run utility/install-oatpp-modules.sh script to install required oatpp modules.
$ mkdir build && cd build
$ cmake ..
$ make 
$ ./oatpp-rest-ybs-exe  # - run application.

About

REST API приложение на C++ & Oat++ (отборочное задание для школы бэкенд разработки 2022)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published