- Run
make help to get documentation
- Try some commands inside microservice directory
cd service/hello
make lint
make format
make test
make view-coverage-html
make docker-build
make docker-postgres-migrate
make docker-start
make postgres-state
make docker-ash # run `exit` to exit
make docker-psql # run `\q` to exit
curl localhost:8080/health
make docker-stop
- Try to deploy project to
minikube cluster
cd ../.. # go to root of the project
make cluster
make deploy
make deploy-postgres-migrate service=hello
make port-forwarding
# add line `127.0.0.1 deploy.local` to the `/etc/hosts` file
echo '127.0.0.1 deploy.local' | sudo tee -a /etc/hosts >> /dev/null
curl -k https://deploy.local/api/hello/health
make delete-cluster