Reputation: 1129
There is a back-end service written in Java and there is a web app, Android app and iOS app that serve the service.
Any typical SaaS product will fit this bill.
I am looking for best practices and guidelines so that I don't have to move code around and maximize the code to be modular.
Do you put code for each app in separate source control repositories or do they live in a single repository?
What is the usual practice?
Upvotes: 4
Views: 881
Reputation: 142532
Do you put code for each app in separate source control repositories or do they live in a single repository?
What is the usual practice?
They should be in a single repository each.
You can use submodules
for this purpose.
Submodule is a project inside project. The benefits of submodules is that it will allow you to use shared resources for the IOS & Anndroid by sharing the same folders.
Git-Tools-Submodules
git-tip-of-week-git-submodules
Upvotes: 1