jorge07 / symfony-6-es-cqrs-boilerplate

Symfony 6 DDD ES CQRS backend boilerplate.
MIT License
1.06k stars 185 forks source link

Change Project structure from layered first to bounded context first. #209

Closed jorge07 closed 3 years ago

jorge07 commented 3 years ago

Reason:

I was doing microservices mostly so for those kinda make sense to have only 1 bounded context + shared so this layered architecture was "good enough" for me. But as proyects have an start date but not a end date and it imposible to know how big your domain be, fit to a a BoundedContext first architecture makes more sense. I made this mistake 3y ago and it's time to fix it

Previously:

App/Application/[BoundedContext]
App/Domain/[BoundedContext]
App/Infrastructure/[BoundedContext]
App/UI/[ Console, HTTP ]

Now:

App/[ BoundedContext ]/[ Application, Domain, Infrastructure ]
UI/[ Console, HTTP ]
jorge07 commented 3 years ago

Fixes #208