- Install go lang
- Install make
- Clone project
- Install global go deps
- Create python virtualenv
python3 -m venv venv
- Install py deps
pip install -r requirements.txt
go clean -modcache
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
- Generate proto deps run
make create
NOTE: In case you are getting "protoc-gen-go: program not found or is not executable" error. Add both GOPATH and GOROOT in PATH :
export PATH=$PATH:$HOME/go/bin, in order to add the GOPATH and
export PATH=$PATH:/usr/local/go/bin, in order to add GOROOT
- In a terminal window go to
server/
go run server.go
- In another terminal window go to
client/
go run client.go
- For Python client in terminal go to
pyclient/
python client.py
You should client sending a RPC call to sever and printing out the result.