I would like to get some advice on what would be the ideal structure for an application using ddd,
Thanks in advance
I would like to get some advice on what would be the ideal structure for an application using ddd,
Thanks in advance
In DDD there are bounded contexts i.e. big features that are meant to be separated from other features and communicate with them via events and interfaces. Such contexts are meant to take their own namespaces:
src
Sales -- context
ListCustomers -- action in context
Action -- middleware for handling request
CustomerRepository -- getting entities from it
Entitiy
Customer
Opportunity
...
Support -- context
Entity
Customer
Ticket
...
ListTickets -- action in context
Action -- middleware for handling request
TicketRepository -- getting entities from it
...