Skip to content

gRPC project - example of simple architecture where gRPC is used to communicate between backend services.

Notifications You must be signed in to change notification settings

GoodbyePlanet/grpc_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of gRPC project

order-service - Java

user-service - Python

api-gateway - Typescript

How to start the app

Order Service

mvn clean install

cd src/main/java/org/order/service/database
docker-compose up

Types will be generated with Maven plugin. Check out pom.xml file. Run the Java app in your IDE.

API Gateway

cd api-gateway
npm install

npm run build:order:proto
npm run build:user:proto

npm run dev

You will see few errors in console, that's fine because there is no TS types for userService.ts until they are generated with above scripts.

User Service

cd user-service
# Make sure you have installed Python3 and pip
pip install -r requirements.txt

./scripts/build-order-proto.sh
./scripts/build-user-proto.sh

cd database
docker-compose up
cd ..
./scripts/run-server.sh

About

gRPC project - example of simple architecture where gRPC is used to communicate between backend services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published