A complete example of a "CRUD" service (UserService) built with Oat++.
In this example:
More about Oat++:
This project is using the following oatpp modules:
|- CMakeLists.txt // projects CMakeLists.txt
|- sql/ // SQL migration scripts for SQLite database
|- src/
| |
| |- controller/ // Folder containing REST Controllers (UserController)
| |- db/ // Folder containing the database client
| |- dto/ // DTOs are declared here
| |- service/ // Service business logic classes (UserService)
| |- AppComponent.hpp // Service config
| |- DatabaseComponent.hpp // Database config
| |- SwaggerComponent.hpp // Swagger-UI config
| |- App.cpp // main() is here
|
|- test/ // test folder
|- utility/install-oatpp-modules.sh // utility script to install required oatpp-modules.
oatpp
oatpp-swagger
oatpp-sqlite
with -DOATPP_SQLITE_AMALGAMATION=ON
cmake flag.Note: You may run utility/install-oatpp-modules.sh
script to install required oatpp modules.
$ mkdir build && cd build
$ cmake ..
$ make
$ ./crud-exe # - run application.
$ docker build -t example-crud .
$ docker run -p 8000:8000 -t example-crud
About
A complete example of a "CRUD" service (UserService) built with Oat++.
Topics Resources License Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4