Yes that's actually very insightful so thank you for taking the time to reply! I started writing the core domain in a web app first (simply out of familiarity) and then I was thinking of extracting it away into its own API project to somewhat achieve what you mentioned. I can see how the web app can simply be a UI that produces CQRS commands and queries and I like that approach. Do you know of a sample github repo that demonstrates this with DDD or tutorial?
I'm focused on developing and expanding my knowledge and skills. Enjoying new challenges. I'm assuming that there are no stupid questions, there are only silly answers.
I think you can take a closer look to Kamil Grzybek's blog and posts about the modular monolith. He had also created a quite advanced project on the Github. The code is written in C# but even if you are not familiar with it you could be able to catch the idea which stands behind it. I hope this will be helpful.
Yes that's actually very insightful so thank you for taking the time to reply! I started writing the core domain in a web app first (simply out of familiarity) and then I was thinking of extracting it away into its own API project to somewhat achieve what you mentioned. I can see how the web app can simply be a UI that produces CQRS commands and queries and I like that approach. Do you know of a sample github repo that demonstrates this with DDD or tutorial?
I think you can take a closer look to Kamil Grzybek's blog and posts about the modular monolith. He had also created a quite advanced project on the Github. The code is written in C# but even if you are not familiar with it you could be able to catch the idea which stands behind it. I hope this will be helpful.
Great, I'll be sure to check that out. Thanks for your help Rafal!