Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
route_guide/ | 23-Nov-2023 | - | 2,271 | 1,520 | ||
README.md | D | 23-Nov-2023 | 886 | 9 | 7 | |
greeter_client.js | D | 23-Nov-2023 | 1.2 KiB | 41 | 19 | |
greeter_server.js | D | 23-Nov-2023 | 1.2 KiB | 45 | 15 | |
helloworld_grpc_pb.js | D | 23-Nov-2023 | 2 KiB | 62 | 35 | |
helloworld_pb.js | D | 23-Nov-2023 | 9.6 KiB | 333 | 148 |
README.md
1This 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): 2 3```sh 4cd ../../protos 5npm install -g grpc-tools 6grpc_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 7grpc_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 8``` 9