Closed All-Khwarizmi closed 5 months ago
We have now well thought the new API consisting of abstraction and IoC.
Now we must go a step further with the entities :
Add business domain logic to the entities:
After create the Request entity add methods to validate whether or not a request is valid given a set of options to check against.
Add to the User entity the others checks that belongs to its sate (currentStorage, subscription plan...)
Add static validation with zod
Add the adapters abstraction class to do as interface between the application layer the presentation layer
Add dependency injection using Tsyringe
Test with unit tests starting from both front and back
We have now well thought the new API consisting of abstraction and IoC.
Now we must go a step further with the entities :
Add business domain logic to the entities:
After create the Request entity add methods to validate whether or not a request is valid given a set of options to check against.
Add to the User entity the others checks that belongs to its sate (currentStorage, subscription plan...)
Add static validation with zod
Add the adapters abstraction class to do as interface between the application layer the presentation layer
Add dependency injection using Tsyringe
Test with unit tests starting from both front and back