You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+14-17Lines changed: 14 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -342,13 +342,10 @@ To install protocol buffers support (the protocol buffer compiler and the protoc
342
342
If you <ahref="https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/INSTALL.md">build and install gRPC from source</a>, the Makefile will automatically install <code>protoc</code> as well (if you don't already have it installed). Installing gRPC also gets you the gRPC C++ plugin for <code>protoc</code>.
343
343
</div>
344
344
<divid="python_protoc">
345
-
First <ahref="https://github.com/google/protobuf/blob/master/README.md">install <code>protoc</code></a> from its Github repository. Then build and install the gRPC plugin:
345
+
On Mac, Linux, and Windows, run:
346
346
347
347
<pre>
348
-
git clone https://github.com/grpc/grpc.git $REPO
349
-
cd $REPO
350
-
make grpc_python_plugin
351
-
cp bins/opt/grpc_python_plugin $SOMEWHERE_ON_PATH
348
+
pip install grpcio-tools
352
349
</pre>
353
350
</div>
354
351
<divid="go_protoc">
@@ -359,17 +356,17 @@ $ go get -a github.com/golang/protobuf/protoc-gen-go
359
356
</pre>
360
357
</div>
361
358
<divid="ruby_protoc">
362
-
First <ahref="https://github.com/google/protobuf/blob/master/README.md">install <code>protoc</code></a> from its Github repository. Then build and install the gRPC plugin:
359
+
On Mac, Linux, and Windows, run:
363
360
364
361
<pre>
365
-
git clone https://github.com/grpc/grpc.git $REPO
366
-
cd $REPO
367
-
make grpc_ruby_plugin
368
-
cp bins/opt/grpc_ruby_plugin $SOMEWHERE_ON_PATH
362
+
gem install grpc-tools
369
363
</pre>
370
364
</div>
371
365
<divid="node_protoc">
372
-
The Node.js gRPC library currently dynamically generates the necessary gRPC code at runtime, so you don't need to install a protocol buffer compiler yourself.
366
+
The Node.js gRPC library can either dynamically generate the necessary gRPC code at runtime or you can use the protocol buffer code generated by <code>protoc</code>. In our example we're going to use dynamic code generation, so if you want to follow along you don't need to have the protocol buffer compiler installed. If you do want to use statically generated code, you can install the compiler by running:
367
+
<pre>
368
+
npm install grpc-tools
369
+
</pre>
373
370
</div>
374
371
<divid="csharp_protoc">
375
372
Install the <ahref="https://www.nuget.org/packages/Google.Protobuf">Google.Protobuf</a> and <ahref="https://www.nuget.org/packages/Grpc.Tools">Grpc.Tools</a> NuGet packages from your IDE (Visual Studio, Xamarin Studio or Monodevelop).
@@ -378,7 +375,7 @@ Install the <a href="https://www.nuget.org/packages/Google.Protobuf">Google.Prot
378
375
Follow the instructions in <ahref="https://github.com/grpc/grpc/tree/master/src/objective-c">gRPC for Objective C</a> to install <code>protoc</code> and the appropriate plugin. Instructions are provided for installation with and without Homebrew.
379
376
</div>
380
377
<divid="php_protoc">
381
-
First <ahref="https://github.com/google/protobuf/blob/master/README.md">install <code>protoc</code></a> from its Github repository. Then install the third-party <code>protoc-gen-php</code> plugin.
378
+
First <ahref="https://github.com/google/protobuf/blob/master/README.md">install <code>protoc</code></a> from its Github repository. Then install the <ahref="https://github.com/stanley-cheung/protobuf-php">third-party <code>protoc-gen-php</code> plugin</a>.
382
379
</div>
383
380
</div>
384
381
@@ -765,7 +762,7 @@ message, as specified in our interface definition, then return.</p>
<p>Our server implements the <code>Greeter</code>service from our
770
767
service definition by implementing the method <code>SayHello</code>:</p>
771
768
<pre>
@@ -904,7 +901,7 @@ end
904
901
905
902
</div>
906
903
<divid="node_server">
907
-
<p><ahref="https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/examples/node/greeter_server.js">greeter_server.js</a> also provides this for our Node.js example.
904
+
<p><ahref="https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/examples/node/dynamic_codegen/greeter_server.js">greeter_server.js</a> also provides this for our Node.js example.
<p>You can see the complete client code in <ahref="https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/examples/node/greeter_client.js">greeter_client.js</a>.</p>
1147
+
<p>You can see the complete client code in <ahref="https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/examples/node/dynamic_codegen/greeter_client.js">greeter_client.js</a>.</p>
1151
1148
1152
1149
</div>
1153
1150
<divid="csharp_call">
@@ -1233,7 +1230,7 @@ Then run the server, which will listen on port 50051:
1233
1230
1234
1231
</div>
1235
1232
<divid="node_runserver">
1236
-
<p>You can run the server from <code>examples/node</code> using:
1233
+
<p>You can run the server from <code>examples/node/dynamic_codegen</code> using:
1237
1234
<pre>$ node ./greeter_server.js &</pre>
1238
1235
1239
1236
</div>
@@ -1297,7 +1294,7 @@ Then run the client:
1297
1294
1298
1295
</div>
1299
1296
<divid="node_runclient">
1300
-
<p>You can run the client from <code>examples/node</code> using:
1297
+
<p>You can run the client from <code>examples/node/dynamic_codegen</code> using:
0 commit comments