solancer / simple-grpc

simple grpc with client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-grpc

Demo code that highlights gRPC based communication between client and server.

Assuming you are at the top of the project tree 'simple-grpc'

There are three directories

proto
client
server
proto

the service is expressed as a 'proto' file leave.proto

server

run the server as node server or node server/index.js

client

there are two clients, implemented in 'node' and 'python 3.x' respectively.

run the 'node' client as node client/node/ or `node client/node/index.js'

run the 'python' client as

cd client/python
./do_1_gen.sh
./do_2_run.sh

About

simple grpc with client and server

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 53.6%Language:Python 26.7%Language:Protocol Buffer 15.6%Language:Shell 4.1%