-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_grpc.sh
17 lines (12 loc) · 885 Bytes
/
setup_grpc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# create root env
python -m venv env
# activate root env
./env/Scripts/activate.bat
# generate grpc product
./env/Scripts/python -m grpc_tools.protoc -I./grpc --python_out=./grpc_server/product --pyi_out=./grpc_server/product --grpc_python_out=./grpc_server/product ./grpc/product.proto
# generate grpc user
./env/Scripts/python -m grpc_tools.protoc -I./grpc --python_out=./grpc_server/user --pyi_out=./grpc_server/user --grpc_python_out=./grpc_server/user ./grpc/user.proto
# generate grpc order
./env/Scripts/python -m grpc_tools.protoc -I./grpc --python_out=./grpc_server/order --pyi_out=./grpc_server/order --grpc_python_out=./grpc_server/order ./grpc/order.proto
# generate grpc orderlist
./env/Scripts/python -m grpc_tools.protoc -I./grpc --python_out=./grpc_server/orderlist --pyi_out=./grpc_server/orderlist --grpc_python_out=./grpc_server/orderlist ./grpc/orderlist.proto