I’ve become interested in the onion architecture these past few months after having a discussion about software architectures and decided to try and improve my understanding of the architecture by implementing it from scratch using the ModernCPPStarter project was used as a basis for this project.
This should help as a springboard for future projects as you can jump straight in with a c++ project template that has the onion architecture implemented.
The current functionality is straightforward: get a list of all users and images associated with their profile from a Sqlite database.
There is also a docker image and devcontainer so if you open this in vscode you should be ready to go.
There is a makefile too with commands to build, run, test and clean the project.
If you would like to use this template check out: ModernCppStarterOnionArchitecture
Any contributions to the project are welcome.