Skip to content

SimpliRoute/grpc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Nodejs & Python example

This repo contains an example of a very basic gRPC server definition in NodeJS with clients for python and nodejs.

Requirements

  • make
  • nvm
  • nodejs v12 installed with nvm
  • yarn
  • Python3
  • virtualenv

How to run

# Install server and clients deps
$ make init

# Recompile protos for js and python
$ make compile_protos

# Run server
$ make server

# Open a new terminal and make a request using nodejs client
$ make request_node

# Open a new terminal and make a request using python client
$ make request_python