Skip to content

dmironenko/go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Template

Requirements

Getting Started

  1. Run make help to get documentation
make help
  1. 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
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors