Skip to content

pbkit/pingpong-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PingPong Server

this is grpc server for testing pbkit packages.

Before Start

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
  • 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

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

How to start?

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

Then...

Clone pingpong-client and Install pbkit-devtools.

And Enjoy Coding!