|
|
@ -3,7 +3,7 @@ gRPC in 3 minutes (Ruby) |
|
|
|
|
|
|
|
|
|
|
|
BACKGROUND |
|
|
|
BACKGROUND |
|
|
|
------------- |
|
|
|
------------- |
|
|
|
For this sample, we've already generated the server and client stubs from [helloworld.proto][] |
|
|
|
For this sample, we've already generated the server and client stubs from [../protos/helloworld.proto][] |
|
|
|
|
|
|
|
|
|
|
|
PREREQUISITES |
|
|
|
PREREQUISITES |
|
|
|
------------- |
|
|
|
------------- |
|
|
@ -25,8 +25,8 @@ RVM is also useful if you don't have the necessary privileges to update your sys |
|
|
|
|
|
|
|
|
|
|
|
INSTALL |
|
|
|
INSTALL |
|
|
|
------- |
|
|
|
------- |
|
|
|
|
|
|
|
- [Install gRPC Ruby][] |
|
|
|
|
|
|
|
|
|
|
|
- Clone this repository |
|
|
|
|
|
|
|
- Use bundler to install the example package's dependencies |
|
|
|
- Use bundler to install the example package's dependencies |
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
```sh |
|
|
@ -35,7 +35,7 @@ INSTALL |
|
|
|
$ bundle install |
|
|
|
$ bundle install |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Try it! |
|
|
|
Try it! |
|
|
|
------- |
|
|
|
------- |
|
|
|
|
|
|
|
|
|
|
|
- Run the server |
|
|
|
- Run the server |
|
|
@ -59,3 +59,4 @@ You can find a more detailed tutorial in [gRPC Basics: Ruby](route_guide/README. |
|
|
|
|
|
|
|
|
|
|
|
[helloworld.proto]:../protos/helloworld.proto |
|
|
|
[helloworld.proto]:../protos/helloworld.proto |
|
|
|
[RVM]:https://www.rvm.io/ |
|
|
|
[RVM]:https://www.rvm.io/ |
|
|
|
|
|
|
|
[Install gRPC ruby]:../../src/ruby#installation |
|
|
|