https://github.com/thimc/grpc-demo
a gRPC demo written in go that consists of a client and a server
https://github.com/thimc/grpc-demo
Last synced: about 1 month ago
JSON representation
a gRPC demo written in go that consists of a client and a server
- Host: GitHub
- URL: https://github.com/thimc/grpc-demo
- Owner: thimc
- License: mit
- Created: 2023-06-11T19:50:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-11T21:01:37.000Z (about 3 years ago)
- Last Synced: 2023-06-11T22:50:54.520Z (about 3 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gRPC demo with bidirectional streaming
Before getting started, please ensure that you have the following dependencies
installed:
## The protobuf compiler
### OpenBSD
```sh
pkg_add protobuf
```
### Ubuntu Linux
```bash
sudo apt install -y protobuf-compiler
```
### Mac OS
```bash
brew install protobuf
```
## The protobuf compiler plugins
These are required for generating the go-specific code.
```sh
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
```
## Running the demo
Before compilation, generate the protobuf specific code via:
```sh
make proto
```
Now, run the following commands:
### Server
```sh
make server
```
### Client
```sh
make client
```