Create a gRPC server and client that successfully communicate with each other. Handout is here.
- Write a proto file that defines an RPC service
- Generate go files from your proto
- Send gRPC requests with client to server
To receive full credit for this lab, you must pass all the tests in integration_test.go. Please do not modify the test file. To submit your lab for grading, please upload to GradeScope.
- Install protoc on your local machine
- Create your protobuf file. Make sure to name the package the same as your other files
- Run
sh generate_grpc.shthe project directory to generate the go files. This script is pretty handy and I recommend you keep it for yourself ;)
- Navigate to either
cmd/clientorcmd/serverand rungo build .. This will generate client or server binaries for you respectively.
go test ./...should run all tests for you from within this repository root.