Welcome to Go-gRPC
, an advanced project that revolutionizes server-client communication by harnessing the capabilities of Go, ChatGPT, and gRPC. This cutting-edge solution is designed for rapid and dependable interactions between servers and clients, leveraging the formidable gpt-3.5-turbo
model through the OpenAI API, all within the Go programming ecosystem.
Go-gRPC
emerged from the essential need to seamlessly integrate OpenAI's API with custom server-side features and transmit data efficiently to the frontend. This project emphasizes prompt engineering and rule-based systems, making it a powerful tool for developers tackling similar challenges in their own projects and scenarios.
Before you proceed, please ensure that Docker is installed on your machine.
-
Ensure Docker is installed on your machine. If not, download it from here.
-
Clone this repository to your local environment.
-
Add your OpenAI API key to the
docker-compose.yml
file:environment: - OPENAI_KEY=your-openai-key-is-here
-
In the project's root directory, execute the following command to set up the Docker environment and build the necessary components:
docker-compose build
This process may take a few minutes to complete.
-
Once the build is finished, run the following command to launch
Go-gRPC
:docker-compose up -d && docker attach go-grpc-client