grpc-node-demo
v1.3.0
Published
To help you quickly create a new Node-GrPC server and understand GRPC quickly, this is a best practice for understanding GRPC
Downloads
1
Maintainers
Readme
How to run ?
```
npm install grpc @grpc/proto-loader
server node server.js
client node client.js
```
Document https://github.com/huanhunmao/grpc-node-demo
如何跑起来(How to run?)
0、git clone [email protected]:huanhunmao/grpc-node-demo.git
1、安装 npm grpc 服务 npm install grpc @grpc/proto-loader
2、启动 server node server.js
3、启动 client node client.js
4、打印结果
ps: 注意端口 不要被别的服务占用,还有一点是每次修改 server.js 需要重启 服务
这是一个最简单的 grpc 服务的例子,是一个好的开始,可以 g clone xxx 后 自己 运行起来玩