Single layer ABP modules #15985
-
ProposalRight now, ABP modules are organized in a DDD way. This means that there are multiple layers in a module: Domain, Application, UI, EF Core, and more. This is a good approach for a large application, but it is not suitable for a small application. In a small application, we don't need to separate the layers. We can put all the code in a single layer. This will make the application simpler and easier to understand. This is the main idea of this proposal. We already have a no-layered template, which is a really good start. Why?
Chat GPT VersionSo, after writing this I asked Chat GPT to write a version of this proposal. Here is the result:
its scary how good it is. I think it is better than my version. What do you think? ConclusionI just want to start a discussion on this. I think it is a good idea. I'm not sure what others think about this. I would like to hear your opinions. Please share your thoughts. So that we can make ABP better. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for the suggestion. I see why you want that and it is very reasonable. ABP CLI may create a single csproj based on preferences (DB selection, UI selection, etc). The template (that is used by CLI to generate the module project) will be complicated, but it can be done. |
Beta Was this translation helpful? Give feedback.
-
@hikalkan Thanks for your reply. I left it for a while thinking others will also have an opinion on this. But it seems like not many are interested in the idea. I'm experimenting with this idea here https://github.com/antosubash/abp-module-template I will close this discussion for now. |
Beta Was this translation helpful? Give feedback.
Thanks for the suggestion. I see why you want that and it is very reasonable. ABP CLI may create a single csproj based on preferences (DB selection, UI selection, etc). The template (that is used by CLI to generate the module project) will be complicated, but it can be done.