grpc-node/examples/helloworld/static_codegen
Ileriayo Adebiyi 300a23698c Fix deprecated statement 2024-02-12 21:09:18 +01:00
..
README.md Import examples from core repository 2023-06-22 16:03:27 -07:00
greeter_client.js Import examples from core repository 2023-06-22 16:03:27 -07:00
greeter_server.js Fix deprecated statement 2024-02-12 21:09:18 +01:00
helloworld_grpc_pb.js Import examples from core repository 2023-06-22 16:03:27 -07:00
helloworld_pb.js Import examples from core repository 2023-06-22 16:03:27 -07:00

README.md

This is the static code generation variant of the Hello World. 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:../helloworld/static_codegen/ --grpc_out=grpc_js:../helloworld/static_codegen/ helloworld.proto