https://github.com/bvwells/grpc-example
Fun with gRPC
https://github.com/bvwells/grpc-example
go golang grpc grpc-go
Last synced: about 2 months ago
JSON representation
Fun with gRPC
- Host: GitHub
- URL: https://github.com/bvwells/grpc-example
- Owner: bvwells
- License: mit
- Created: 2018-06-30T19:23:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T17:16:53.000Z (almost 6 years ago)
- Last Synced: 2026-01-13T20:22:42.969Z (5 months ago)
- Topics: go, golang, grpc, grpc-go
- Language: Go
- Size: 42 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grpc-example
[](https://pkg.go.dev/github.com/bvwells/grpc-example?tab=overview)


[](https://travis-ci.org/bvwells/grpc-example)
[](https://codecov.io/gh/bvwells/grpc-example)
[](https://goreportcard.com/report/github.com/bvwells/grpc-example)
This repository contains an example usage of gRPC based on the grpc quickstart example defined [here](https://grpc.io/docs/languages/go/quickstart/) and [here](https://github.com/grpc/grpc-go/blob/master/examples/helloworld/helloworld/helloworld.proto).
## 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
```bash
$ go generate ./...
```
## Run server
To run the server:
```bash
$ cd server
$ go run main.go
```
## Run client
To run the server:
```bash
$ cd client
$ go run main.go
```