8705803764
Snyk has created this PR to upgrade google-protobuf from 3.19.4 to 3.20.0. See this package in npm: https://www.npmjs.com/package/google-protobuf See this project in Snyk: https://app.snyk.io/org/appleboy/project/fcfc2ba6-1b67-4528-bc1d-2f9febf86663?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <snyk-bot@snyk.io> |
||
---|---|---|
.. | ||
.gitignore | ||
README.md | ||
client.js | ||
gorush_grpc_pb.js | ||
gorush_pb.js | ||
package-lock.json | ||
package.json |
README.md
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`