Reputation:
For the next 6 months I've to manage two or more developer on a web application development, based on Laravel (backend framework used for restful ws) and AngularJs (frontend framework which calls my ws).
As far as I know, the Angular code must resides into the public folder (the Laravel public folder), but in this way, I cannot use different repositories for two submodules (frontend app and backend app), in order to assign to each developer own repo (frontend repo to frontend dev, backend repo to backend dev).
I'll plan to use agile methods.
Upvotes: 1
Views: 162
Reputation: 54419
Git Submodules can be the solution here.
You can organize you code this way: main repo (backend) + submodule (frontend).
cd backend
git fetch && git reset --hard origin/master
cd frontend
git fetch && git reset --hard origin/master
cd backend
git fetch && git reset --hard origin/master
git submodule sync
git submodule update --init --recursive
Of course this is only the simple example, but I assume it's clear enough to get the point of Git submodules :)
Upvotes: 1