Categorygithub.com/pvr1/gigs
repositorypackage
0.0.0-20240704154405-1dca9789e69f
Repository: https://github.com/pvr1/gigs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

A backend for the Gigs industry

Go Report Card Total alerts

Run the backend

Install into ~/go/github.com/pvr1/gigs

Run by

go run .

Dockerize by

docker build .

Create mongodb in kubernetes (in namespace mongodb). Create gigs in default as of now...

kubectl create ns mongodb
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install mongodb -n mongodb bitnami/mongodb

kubectl apply -f k8s_gigs.yaml
kubectl get svc -n mongodb # look for or make LoadBalancer svc for mongodb
export MONGODB_ROOT_PASSWORD=$(kubectl get secret --namespace mongodb my-release-mongodb -o jsonpath="{.data.mongodb-root-password}" | base64 --decode)
brew install mongosh
mongosh admin --host 10.0.0.166 --authenticationDatabase admin -u root -p $MONGODB_ROOT_PASSWORD
use gigs
db.createUser({user: "gigbe",pwd:  "gigbe", roles: [ { role: "readWrite", db: "gigs" }]})
kubectl get po --no-headers=true | awk '/^[[:blank:]]*gigs-/{print $1}' | xargs  kubectl logs --follow