Skip to content

giuliohome/web-golang

Repository files navigation

Technical Debt Reliability Rating Security Rating Bugs Code Smells

Quality gate

web-golang

web in go language from wiki example

  • CI deployment to GKE via github actions

  • end to end testing with cypress (screenshot of dashboard run below)

immagine

docker or minikube

Without a google cloud subscription, do for example

sudo systemctl start docker

Either you simply

docker run -p 80:8080 giuliohome/web.golang:latest

and visit http://localhost/view/a1

or you can

minikube start

then deploy the demo to the local node

minikube kubectl -- apply -f deployment.yml

to get an external ip

minikube tunnel -c --log_dir tunnel_log/
minikube kubectl -- get all

Open the browser and check it out

Finally reclaim all the space

minikube stop
minikube delete --purge --all

and eventually

docker system prune -a

end to end testing

useful commands, especially for local dev

npx cypress run --spec cypress\integration\1-getting-started\web-golang.js

and

npx cypress open

image

lens + minikube + stateful db pod

log from golang console seen inside Lens web frame for cluster observability

image