This is the repository to provide an example code for the blogpost about using gRPC with Go.
You may want to leverage Makefile
to install protoc
compiler. Tou can also use it to download protoc-gen-go
and finally to compile gravatar.proto
file.
To do all of these things at once, just run:
make compile
Once finished, you should see gravatar.pb.go
file generated.
Tu run the application, you will need to start the server (to handle requests) and a client (to receive responses). They can be executed correspondingly as:
go run server/main.go
go run client/main.go
and have to be run in separate terminal windows as the server is a long-running process, while a client is just a one-time call.