pphanireddy
pphanireddy

Reputation: 1129

How to structure source control repository for a platform with iOS, Android, Web apps and Java backend?

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

Answers (1)

CodeWizard
CodeWizard

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

enter image description here

Upvotes: 1

Related Questions