- Install protoc-gen-micro
go get github.com/micro/protoc-gen-micro
- Install Go's support for protocol buffers
go get -u github.com/golang/protobuf/protoc-gen-go
- Install protocol buffer compiler
- Install Go
- Write the API documentation in the protobuf as shown in sum/sum.proto
- Compile it using
protoc --proto_path=$GOPATH/src:. --micro_out=. --go_out=. sum.proto
. - Implement both server and client, you can look at the example in the repo.
- Run both the client and server in separate terminals, but server first.
Open two terminals, run server first in one terminal, then client in the other one. You're done!