DEV Community

Discussion on: Domain Driven Design Implementation Plainly

Collapse
 
fyodorio profile image
Fyodor

Solid approach with good SoC, thanks for sharing 👍

Though the domain-logic- structure looks a bit verbose to me. Why not decouple it to models-, store-, data-access- (or alike - for data access literally - API services and stuff like that - or even combining it with the store- - which makes total sense IMO)? The business-logic services can be placed inside corresponding feature- libs, to avoid traversing the whole folder tree searching for them.
nx is already too nested and verbose so deepening it on is too much for me.

It's just an opinion anyway, I saw a lot of nx projects and all of them are totally different indeed 😁 Though the domain-driven separation is almost always a good start 👍