aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/node/README.md
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-05-12 14:28:36 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-05-12 14:28:36 -0700
commit6d0b4d20c0dbb9326724343a0c04b52d390e25a4 (patch)
treec815c2d33c28f0d10112d8239fcf6fe5d6b250ef /examples/node/README.md
parentd9c58961f91d877e760008e2916527b0d56b8826 (diff)
parenta709afe241d8b264a1c326315f757b4a8d330207 (diff)
Merge branch 'master' of github.com:grpc/grpc into merge
Diffstat (limited to 'examples/node/README.md')
-rw-r--r--examples/node/README.md10
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