angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

Does auth is domain? #92

Closed jon9090 closed 2 years ago

jon9090 commented 2 years ago

The ddd is about business domains.

But auth can be a domain like that?

 libs
  auth
   domain (facade, services)
   feature-login (smart component)
   feature-register (smart component)
   feature-forgot-password (smart component)
   ui-auth  (dumb component)
   util-auth  (utils for auth)
manfredsteyer commented 2 years ago

From an DDD perspective its not a domain. However, if it fits for you, you can ofc model it like any other domain in your code.