This code's has been inspired from from the grpc.io site.
From the message
directory:
Run the server:
python3 message_server.py
From another terminal window, run the client:
python3 message_client.py
- Ritchie CLI installed locally
- ritchie-formulas-demo Github repository imported:
rit add repo --provider="Github" --name="demo" --repoUrl="https://github.com/ZupIT/ritchie-formulas-demo" --priority=1
From the python/ritchie
directory:
Run the server:
python3 ritchie_server.py
From another terminal window, run the client:
python3 ritchie_client.py
Updating the /protos/message.proto
file, we need to update the gRPC code used by our application to use the new service definition.
From the message
directory, run:
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/message.proto
Updating the /protos/ritchie.proto
file, we need to update the gRPC code used by our application to use the new service definition.
From the ritchie
directory, run:
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/ritchie.proto