The following gRPC sample project is built in Go and connects to a MongoDB. The project also exposes the services as HTTP. In the examples directory you will see both gRPC and HTTP client samples.
Authored by: Rob Taylor [email protected]
go mod download
go mod vendor
go run cmd/example/main.go
make docker
make compose
make
./bin/example
Be sure the service is running using one of the methods above
go run examples/main.go
First install health checker:
~/go/bin/grpc-health-probe -addr=localhost:8080
go test ./...