gorush/rpc/example/node
Snyk bot ebe3723319
[Snyk] Upgrade google-protobuf from 3.21.0 to 3.21.1 (#694)
Snyk has created this PR to upgrade google-protobuf from 3.21.0 to 3.21.1.

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
2022-12-03 22:19:46 +08:00
..
.gitignore feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
README.md chore: replace yarn with npm (#434) 2019-10-27 12:13:40 +08:00
client.js feat(grcp): support MutableContent for ios (#332) 2018-01-16 11:26:45 +08:00
gorush_grpc_pb.js chore: replace yarn with npm (#434) 2019-10-27 12:13:40 +08:00
gorush_pb.js fix #560: fix proto file and Makefile to generate pb (go, js) (#636) 2021-10-25 09:34:46 +08:00
package-lock.json [Snyk] Upgrade google-protobuf from 3.21.0 to 3.21.1 (#694) 2022-12-03 22:19:46 +08:00
package.json [Snyk] Upgrade google-protobuf from 3.21.0 to 3.21.1 (#694) 2022-12-03 22:19:46 +08:00

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`