a template repository of grpc-go + grpc-gateway
- manage external proto files by protodep
- additional samples
- go 1.12 or above
- brew install go
- Protocol Buffers compiler
- brew install protobuf
- grpc-go
- go get -u google.golang.org/grpc
- go protocol buffers plugin
- go get -u github.com/golang/protobuf/protoc-gen-go
- grpc-gateway protocol buffers plugin
- go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
- protodep
- go get -u github.com/stormcat24/protodep
make proto-build
make go-build
- launch
cmd/api/api
andcmd/gw/gw
curl localhost:8080/data?param=true
- cmd
- main applications
- proto
- proto files
- app
- internal packages