![]() There would be an Appointment Domain that should only take care of business logic related to appointments, be it to create appointments, list appointments, check available appointments or cancel appointments. So services related to users such as Authenticate User Service, Create Appointment Service, Create User Service, Update User Avatar Service should all belong to the User Domain. So it is not always good to build our project structure around separating files by their type.Ī good way to build our project structure is to isolate things according to their domain, by using modules. Is the sphere of knowledge that involves that particular file or module. Having so many files that do not deal with the same module, or in other words, do not deal with the same domain becomes confusing. The problem with this is: if we had 10 models, we would have around 40–50 services. So files of the service type are stored in the services folder. We currently separate our application by file types. ![]() ![]() Everything in it impacts directly how our application functions. The src folder should contain our application modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |