GRPC Stack

Sandbox project for discovering GRPC
TODO
- Use a separate container for the build
- Optimize container size
- Plug a GUI (Giu)
Usage
Help
go run . -h
Start server (default localhost:8080)
go run . serve [-i=hostname] [-p port]
Push int to the stack
go run . push -n 123
Pop int from the stack
go run . pop
Setup
- Install
protoc
from the package manager of your system.
dnf install -y protobuf-compiler
- Install
protoc-gen-go
.
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
Generate the go files from .proto
files.
make protoc
Run tests
make test
Build the project (binary : build/stack)
make build
Create container
make container
Start container
make run