Skip to content

client-side application providing a gRPC interface for making guess requests

License

Notifications You must be signed in to change notification settings

gardusig/guessclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GuessClient

Project Overview

GuessClient is the client-side application for the Guess service. It sends guess requests to a server using gRPC.

How to Build and Run

To build and run GuessClient locally, follow these steps:

$ docker build . -t guessclient
$ docker run guessclient

Configuration Options

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).

Code Structure

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.

Dependencies

  • github.com/gardusig/guessproto: Protobuf definitions for communication between the client and server.