GuessClient is the client-side application for the Guess service. It sends guess requests to a server using gRPC.
To build and run GuessClient locally, follow these steps:
$ docker build . -t guessclient
$ docker run guessclient
GuessClient can be configured using environment variables:
GUESS_SERVER_GRPC_PORT
: The port of the Guess server gRPC service (default:50051
).GUESS_SERVER_GRPC_HOST
: The host of the Guess server gRPC service (default:localhost
).
The project directory structure is as follows:
guessclient/
├── cmd/
├── guess/
└── internal/
cmd/
: Contains the main entry point of the application.guess/
: Contains the client logic for interacting with the Guess service.internal/
: Contains configuration constants and initialization logic.
github.com/gardusig/guessproto
: Protobuf definitions for communication between the client and server.