diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-05-12 12:07:46 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-05-12 12:07:46 -0700 |
commit | 677e04d7bdf01c44e0614017b0c716b660aed01a (patch) | |
tree | 1c79529f9e069b3740fdc8bc81175fc8efe7ec18 /examples/node/README.md | |
parent | 26dd2b8d6b298b7225f317b66a05646aaefb6a48 (diff) | |
parent | 395bca9a61d7430fbd7f1d2da1888dbee39e234e (diff) |
Merge pull request #6431 from murgatroid99/node_protoc_examples
Split Node examples into static and dynamic code generation examples
Diffstat (limited to 'examples/node/README.md')
-rw-r--r-- | examples/node/README.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/node/README.md b/examples/node/README.md index 28878833ce..59fb4a17f5 100644 --- a/examples/node/README.md +++ b/examples/node/README.md @@ -22,18 +22,24 @@ INSTALL TRY IT! ------- +There are two ways to generate the code needed to work with protocol buffers in Node.js - one approach uses [Protobuf.js](https://github.com/dcodeIO/ProtoBuf.js/) to dynamically generate the code at runtime, the other uses code statically generated using the protocol buffer compiler `protoc`. The examples behave identically, and either server can be used with either client. + - Run the server ```sh $ # from this directory - $ node ./greeter_server.js & + $ node ./dynamic_codegen/greeter_server.js & + $ # OR + $ node ./static_codegen/greeter_server.js & ``` - Run the client ```sh $ # from this directory - $ node ./greeter_client.js + $ node ./dynamic_codegen/greeter_client.js + $ # OR + $ node ./dynamic_codegen/greeter_client.js ``` TUTORIAL |