As we're using Go, the compiler should be the same language
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
Clone repository
git clone https://github.com/achjailani/go-simple-grpc.git
Install
cd go-simple-grpc && go mod download
Compile proto
make proto
Run gRPC server
go run main.go grpc:start
Run HTTP Server
go run main.go
Any related things to gRPC server could be found in grpc
directory, including handler
, server
and interceptors
Any related things to gRPC client could be found in grpc/client
directory, including connection
, method call
Any related things to REST API could be found in rest
directory
All interceptors are in grpc/interceptor
directory