tania-m cb78540024 Update greeter_client.js пре 9 година
..
route_guide 210f3c4b8e Added comments to node generation, also refactored some plugin code пре 10 година
README.md ddc0eb1be2 Split Node examples into static and dynamic code generation examples пре 10 година
greeter_client.js cb78540024 Update greeter_client.js пре 9 година
greeter_server.js ddc0eb1be2 Split Node examples into static and dynamic code generation examples пре 10 година
helloworld_grpc_pb.js 210f3c4b8e Added comments to node generation, also refactored some plugin code пре 10 година
helloworld_pb.js 210f3c4b8e Added comments to node generation, also refactored some plugin code пре 10 година

README.md

This is the static code generation variant of the Node examples. Code in these examples is pre-generated using protoc and the Node gRPC protoc plugin, and the generated code can be found in various *_pb.js files. The command line sequence for generating those files is as follows (assuming that protoc and grpc_node_plugin are present, and starting in the base directory of this package):

cd ../protos
protoc --js_out=import_style=commonjs,binary:../node/static_codegen/ --grpc_out=../node/static_codegen --plugin=protoc-gen-grpc=grpc_node_plugin helloworld.proto
protoc --js_out=import_style=commonjs,binary:../node/static_codegen/route_guide/ --grpc_out=../node/static_codegen/route_guide/ --plugin=protoc-gen-grpc=grpc_node_plugin route_guide.proto