Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 855 Bytes

README.md

File metadata and controls

51 lines (35 loc) · 855 Bytes

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