Skip to content

bvwells/grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-example

go.dev reference GitHub go.mod Go version GitHub release (latest SemVer) Build Status codecov Go Report Card

This repository contains an example usage of gRPC based on the grpc quickstart example defined here and here.

Install protoc

Install protoc (https://github.com/protocolbuffers/protobuf)

brew install protobuf

Install tools

To install the go protoc plugin run:

$ go get -u github.com/golang/protobuf/protoc-gen-go

Ensure that $GOBIN is added to the path.

export PATH=$PATH:~/go/bin

Generate client and server stubs

$ go generate ./...

Run server

To run the server:

$ cd server
$ go run main.go

Run client

To run the server:

$ cd client
$ go run main.go

About

Fun with gRPC

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors