gorush/rpc/example/node
Bo-Yi Wu 20713be962 feat(grpc): add node.js example. (#260)
* feat(grpc): add node.js example.

* remove comments.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-25 22:33:06 +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(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
gorush_grpc_pb.js feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
gorush_pb.js feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
package.json feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +08:00
yarn.lock feat(grpc): add node.js example. (#260) 2017-07-25 22:33:06 +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`