Skip to content

qleet/go-web3-sample-app

Repository files navigation

go-web3-sample-app

Web3 sample app in Go

Requirements

Kubernetes deployment

Qleet Kind cluster

Deploy workload

make kind-deploy

Map the port of the sample app:

kubectl port-forward -n web3 svc/web3-sample-app 8080:8080

Open sample app in a browser

http://localhost:8080/

Undeploy workload

make kind-undeploy

Any Kubernetes cluster

Deploy workload

kubectl apply -f ./k8s/ns.yaml
kubectl apply -f ./k8s --namespace=web3 --validate=false

Delete workload

kubectl delete -f ./k8s --namespace=web3

Build

Run build target

make build

Release

Run release target

make release

Help

$ make
Usage: make COMMAND
Commands :
help          - List available tasks
clean         - Cleanup
test          - Run tests
build         - Build binary
run           - Run binary
get           - Download and install dependency packages
release       - Create and push a new tag
update        - Update dependencies to latest versions
version       - Print current version(tag)
image-build   - Build a Docker image
image-run     - Run a Docker image
image-stop    - Stop a Docker image
kind-deploy   - Deploy to a local KinD cluster
kind-undeploy - Undeploy from a local KinD cluster
kind-redeploy - Redeploy to a local KinD cluster