- Download Golang
- Download Docker
- Download protobuf compiler (http://google.github.io/proto-lens/installing-protoc.html)
- api
- proto
- ${services}.proto
- proto
- cmd
- - main.go (setup server)
- key (dir that save key)
- pkg
- api
- ${services}
- ${services}.pb.go
- ${services}
- service
- ${services}
- ${services}.go (file, main part of the service)
- src (dir for any extra go program)
- ${services}
- api
For more of google services, please look at https://github.com/googleapis/google-api-go-client, currently google service is used for authentication.
The are three ways to run the services
- use
go run cmd/server/main.go
- compile docker image with
scripts/image.sh
, then run the image - compile docker image with
scripts/image.sh
, then run docker-compose @deployments/docker-compose.yaml