Mehrdad Afshari bb3d95b643 Use https://grpc.io consistently as the canonical URL 8 vuotta sitten
..
route_guide bb3d95b643 Use https://grpc.io consistently as the canonical URL 8 vuotta sitten
README.md 10cea4b121 Use grpc-tools npm package in readme 9 vuotta sitten
greeter_client.js 7897ae9308 auto-fix most of licenses 8 vuotta sitten
greeter_server.js 7897ae9308 auto-fix most of licenses 8 vuotta sitten
helloworld_grpc_pb.js 4d5c3102a1 fix remaining license notices 8 vuotta sitten
helloworld_pb.js 210f3c4b8e Added comments to node generation, also refactored some plugin code 10 vuotta sitten

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 directory which contains this README.md file):

cd ../../protos
npm install -g grpc-tools
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:../node/static_codegen/ --grpc_out=../node/static_codegen --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` helloworld.proto
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:../node/static_codegen/route_guide/ --grpc_out=../node/static_codegen/route_guide/ --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` route_guide.proto