At $GOPATH/src/rj
, git clone this project.
- Download Golang
- Download Docker, Docker Compose
- Download protobuf compiler (http://google.github.io/proto-lens/installing-protoc.html)
- MongoDB (optional, can use docker image)
https://workaround.org/ispmail/jessie/create-certificate
openssl req -newkey rsa:4096 -nodes -sha512 -x509 -days 3650 -nodes -out ./key/certs/mycert.pem -keyout ./key/private/mykey.pem
openssl genrsa -out ./key/private/mykey.pem 4096
openssl req -new -key ./key/private/mykey.pem -out ./key/certs/mycert.csr
go get google.golang.org/grpc
go get google.golang.org/api/oauth2/v2
- 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