Starter project of oat++ (AKA oatpp) application with authorization headers. Based on oatpp Multithreaded (Simple) API.
See more:
|- CMakeLists.txt // projects CMakeLists.txt
|- src/
| |
| |- controller/ // Folder containing MyController and MyCustomAuthorizationController where all endpoints are declared
| |- dto/ // DTOs are declared here
| |- AppComponent.hpp // Service config
| |- App.cpp // main() is here
|
|- test/ // test folder
|- utility/install-oatpp-modules.sh // utility script to install required oatpp-modules.
Requires
oatpp
module installed. You may runutility/install-oatpp-modules.sh
script to install required oatpp modules.
$ mkdir build && cd build
$ cmake ..
$ make
$ ./my-project-exe # - run application.
$ docker build -t oatpp-starter .
$ docker run -p 8000:8000 -t oatpp-starter