gorush/rpc/example/node
dependabot[bot] a4b41daf2d chore(deps): bump tar from 2.2.1 to 2.2.2 in /rpc/example/node (#413)
Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2)
2019-06-06 23:17:04 +08:00
..
.gitignore feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
README.md feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
client.js feat(grcp): support MutableContent for ios (#332) 2018-01-16 11:26:45 +08:00
gorush_grpc_pb.js feat(grpc): support category, alert and badge for ios. (#321) 2018-01-02 15:53:15 +08:00
gorush_pb.js feat(grcp): support MutableContent for ios (#332) 2018-01-16 11:26:45 +08:00
package.json feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
yarn.lock chore(deps): bump tar from 2.2.1 to 2.2.2 in /rpc/example/node (#413) 2019-06-06 23:17:04 +08:00

README.md

gRPC in 3 minutes (Node.js)

PREREQUISITES

node: This requires Node 0.12.x or greater.

INSTALL

$ yarn 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`