Setup
I have a web project whose front and backends are hosted on Heroku separately. It is stored in my machine as so:
project root
├── backend
│ ├──── stuff
│ └──── .git
├── frontend
│ ├──── stuff
│ └──── .git
├── project-wide config files
├── scripts
└── README.md
Problem
As you know, deployment to Heroku requires the backend and frontend folders to have their own git folders... but on Github, I want to unify this whole project into one repo, like it is on my machine.
What are the best practices to this issue? Is git submodules a good solution?
I am also entertaining the idea of docker-composing this whole project.