I know this may sound crazy but has anyone seen that a nestjs module is developed in it's own repository and then added as a GitHub submodule to the main nestjs application?
The background of this is I am building a chat module with nestjs that I want to reuse in different apps. So I am asking if this submodule approach makes any sense?
I have also considered putting the chat into its own microservice but I read that for starting out and for startups it's better to start with a monolith.
it more than once. At my workplace, we currently have a submodule and I dread dealing with it every time. It's a massive pain and a monorepo or a private package (depending on the need) would be a much better approach