oatpp / example-async-api

Example project how-to use oatpp asynchronous API.

Home Page:https://oatpp.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async API Example Build Status

Example project how-to use oat++ (AKA oatpp) asynchronous API.

See more:

Overview

Project layout

|- CMakeLists.txt                        // projects CMakeLists.txt
|- src/
|    |
|    |- controller/                      // Folder containing controller 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.

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 
$ ./example-async-api-exe  # - run application.

In Docker

$ docker build -t example-async-api .
$ docker run -p 8000:8000 -t example-async-api

Read More

About

Example project how-to use oatpp asynchronous API.

https://oatpp.io/

License:Apache License 2.0


Languages

Language:C++ 83.2%Language:CMake 11.3%Language:Shell 3.4%Language:Dockerfile 2.1%