studiofu / demo-node-grpc

demo of using grpc in nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple nodejs gRPC Demo

npm init -y

npm install --save grpc @grpc/proto-loader uuid express body-parser

need to create protocol buffer fine news.proto to define the message and also the function call

need to create the server and client

node server to startup the server side

node get_news to retrieve the news from server

node insert_news to add news to the server

About

demo of using grpc in nodejs


Languages

Language:JavaScript 100.0%