gRPC Exmpales

Quick start gRPC examples with a simple working example.

Make sure you’ve installed go programming language and protocol plugins:

$ go install
$ go install

Add a protobuf file (called main.proto) and generate to the binary code via the following command.

$ ./

Run the client and server with the following command

  1. Set up the server:
$ go run greeter_server/main.go
  1. From another window, run a command with the arguemnt:

$ go run greeter_client/main.go --name=Bob

// Print the follwoing output
Greeting: Hello Bob
Greeting: Hello again Bob


View Github