Defining gRPC APIs with Protobuf - Part 2

In Part 1, we set up our project structure. Now, we’ll: ✅ Define User and Order APIs ✅ Generate gRPC code from .proto files. We have created apis folder so lets navigate to that folder and define our apis there. cd ecom-grpc/apis Note: Please replace the github user name and repo in each of the following folder Step 1: Install Protobuf Compiler Before writing .proto files, install protoc:

Mar 4, 2025 - 13:16
 0
Defining gRPC APIs with Protobuf - Part 2

In Part 1, we set up our project structure. Now, we’ll:
✅ Define User and Order APIs
✅ Generate gRPC code from .proto files.

We have created apis folder so lets navigate to that folder and define our apis there.

cd ecom-grpc/apis

Note: Please replace the github user name and repo in each of the following folder

Step 1: Install Protobuf Compiler

Before writing .proto files, install protoc: