We're building our first webproject with laravel and angularjs and trying to figure out how to setup our development environment. Our current approach looks like this:
- Backend git repo with laravel file structure
- Frontend git repo with angularjs file structure
So some of us could work on the backend/frontend without the need of messing around with the frontend/backend files. Now, if there is a new version of e.g. a dev branch on the backend repo and I am working on the frontend, I want the frontend repo to automatically pull this new backend version from the git server and copy it into the development environment of the developer (on his workstation). That should guarantee that we can use the latest api routes in our frontend development.
The questions are:
- Is there a way to automate this scenario?
- Is it at all the best approach to seperate laravel and angularjs in two different repos? We also want to use some kind of task runner (like gulp) to build/package/minimize our frontend files (e.g. sass, less).
git pull
?