/grpc-demo

simple gRPC server/client examples in Node and Python

Primary LanguageJavaScript

gRPC samples

Super simple gRPC samples in Node.js and Python. Both version are compatible to each other. More about gRPC, see http://www.grpc.io/

Node.js

Setup

npm install

Server

node nodejs/server.js

Client

node nodejs/client.js

Python

Setup

pip install -r requirements.txt
python -m grpc.tools.protoc -I=. --python_out=./python --grpc_python_out=./python sample.proto

Server

python python/server.js

Client

python python/client.py