this is grpc server for testing pbkit packages.
Require installing pollapo, go, protoc.
(Require installing nodejs and yarn for client.)
And Install protoc-gen-go
and protoc-gen-go-grpc
.
- MacOS
- Run
brew install protoc-gen-go protoc-gen-go-grpc
- Run
- Windows
- Run
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- Run
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- Run
Clone pingpong-server and api-common-protos.
git clone https://github.com/pbkit/pingpong-server.git
git clone https://github.com/googleapis/api-common-protos.git
Gen go file for protoc.
cd ./pingpong-server
pollapo install
protoc --go_out="." --go_opt=paths=source_relative --go-grpc_out="." --go-grpc_opt=paths=source_relative -I=".pollapo" .pollapo/pbkit/interface-pingpong-server/pingpong.proto -I="../api-common-protos/"
And start pingpong server.
go run main.go
Clone pingpong-client and Install pbkit-devtools.
And Enjoy Coding!