Categorygithub.com/jeremyKisner/my-grcp-service
module
0.0.0-20240808021230-4f4e44e1db97
Repository: https://github.com/jeremykisner/my-grcp-service.git
Documentation: pkg.go.dev

# README

my-grcp-service

This is an example gRCP client-server project in Go.

Getting Started

  1. Install protoc
  2. Run protoc executable like:
protoc.exe --go_out=. --go-grpc_out=. .\roller\rollerService\service.proto
  1. Run unit tests
go test ./...

Build Locally

  1. Start server.
go run .\roller\roller_server\main.go
  1. Start client.
go run .\roller\roller_client\main.go
  1. While the server is running, use the client to send commands. The following keybinds exist:
    • r :: rolls a number 0-100 against the server.

Locally Run Service with Docker

  1. Build the server.
docker build -t roller_server .
  1. Start server.
docker run -p 50051:50051 roller_server
  1. Start client.
go run .\roller\roller_client\main.go

# Packages

No description provided by the author