The applications - in this project was build based on this article
- Always use the latest Go version
- Work in single branch
- Don't push code without ensuring it is working properly
Use the Deployment folder for
- Building the client side code by running
build.client.sh
The script generates static files intoui/build
folder that later pushed into the Go app
- Building the server side code by running
build.server.sh
This script build the app for Linux environment. If you want to build it for different OS you need to look forenv GOOS=linux GOARCH=amd64
and replace per your need. Environment variables can be found here
Note that the folder you are executing the build should be the deploy
folder
for deploying the system you must have gcloud. docker and docker composed install, the deployment script should work on linux and mac
run the following command
gcloud login
A page with the google login will be opened. than run
sh deploy.sh