This repository contains an implementation of gRPC Server in Go. The service provides functionalities to manage products.
To install and run this service, follow these steps:
- Ensure you have Go installed on your machine. If not, you can download it from here.
- Clone this repository to your local machine.
git clone https://github.com/WalterPaes/go-grpc-crud.git
- Navigate to the project directory.
cd go-grpc-crud
- Run the following command to install the dependencies.
go mod tidy
- Finally, run the service.
go run cmd/server/main.go
- Create Product: Allows the creation of a new product with name, category, description, and price.
- Find Product by ID: Retrieves product details by its ID.
This service exposes gRPC endpoints for interacting with the product data. Below are the available endpoints:
To create a new product, call the Create
method with the necessary product details.
To retrieve product details by ID, call the FindById
method with the product ID.
This project is licensed under the MIT License - see the LICENSE file for details.