Files
gorush/rpc/example/node
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 6bfab294cd chore(deps): bump lodash from 4.17.15 to 4.17.19 in /rpc/example/node (#541)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-27 13:20:10 +08:00
..
2020-09-27 12:11:35 +08:00
2019-10-27 12:13:40 +08:00

gRPC in 3 minutes (Node.js)

PREREQUISITES

node: This requires Node 12.x or greater.

INSTALL

npm install
npm install -g grpc-tools

Node gRPC protoc

cd $GOPATH/src/github.com/appleboy/gorush
protoc -I rpc/proto rpc/proto/gorush.proto --js_out=import_style=commonjs,binary:rpc/example/node/ --grpc_out=rpc/example/node/ --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin`