Following with my previous post, Dry-web-roda part 1, I have decided to create my own small website to keep track of all the things I learn throughout the day.
Yes, I know, another
Today I Learned Website 😓 – til_web, but this time I started with the persistence layer and I wanted to share my experience with you.
First of all, we will need dry-web-roda that will behave as our web application stack. When creating a new project with it, we have two options regarding the architecture point of view of our application:
Umbrella means that our functionality will be divided into sub-apps – for example the public site and the admin site.
Flat is a simpler architecture with a single module for the entire app.
In my app I decided to use the
flat option for simplicity at the beginning, but in the future I plan to move to sub-apps.