Split frontend code and backend code and connect them using CI/CD
Currently the admin-dashboard frontend vue code lives in ./Client
while the complete streaming setup code lives in ./Server
. My suggestion would be to split these two code bases apart and manage them on two different git repositories, because development in one codebase really doesn't affect the other codebase.
Currently, after updating and testing the admin-dashboard frontend code, one needs to run vue build
, copy the resulting contents of ./Client/(.../)public/
to ./Server/www
manually and then do a git commit. Using a two-repo approach, this could be done using a CI-pipeline:
- Admin dashboard frontend development takes place on the frontend repositorie's
dev
branch - Once a fully tested frontend update is ready, its merged into
main
- Every time something is merged into
main
, a CI pipeline runsvue build
in the cloud and commits the result to the other repository as an automatic update