Skip to content

Good project structure for front & backend #32069

Discussion options

You must be logged in to vote

I believe what you're looking for are git submodules.

In short if you run git submodule add <your-repo> in a git repository, <your-repo> will be added as a folder inside your main repository. You can add as many submodules as you like. You could even have private submodules in public repositories and they would not be visible to the public. An example of that could be seen in my dotfiles repository with the personal submodule.

Other than that you could also create a monorepo essentially combining both projects under the same repository which is common practice in certain situations as well. There are build systems dedicated to managing such repositories.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarkoPavi
Comment options

Answer selected by MarkoPavi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New User Help ❓ New User help
2 participants