Tim Emiola | 49f3ccd | 2015-02-19 11:09:19 -0800 | [diff] [blame^] | 1 | gRPC Ruby Helloworld |
| 2 | ==================== |
| 3 | |
| 4 | INSTALLATION PREREQUISITES |
| 5 | -------------------------- |
| 6 | |
| 7 | This requires Ruby 2.x, as the gRPC API surface uses keyword args. |
| 8 | |
| 9 | INSTALL |
| 10 | ------- |
| 11 | |
| 12 | - Clone this repository. |
| 13 | - Follow the instructions in [INSTALL](https://github.com/grpc/grpc/blob/master/INSTALL) to install the gRPC C core. |
| 14 | - *Temporary* Install gRPC for Ruby from source on your local machine and update path: to refer to it [Gemfile]. |
| 15 | - this is needed until the gRPC ruby gem is published |
| 16 | - Use bundler to install |
| 17 | ```sh |
| 18 | $ # from this directory |
| 19 | $ gem install bundler && bundle install |
| 20 | ``` |
| 21 | |
| 22 | USAGE |
| 23 | ----- |
| 24 | |
| 25 | - Run the server |
| 26 | ```sh |
| 27 | $ # from this directory |
| 28 | $ bundle exec ./greeter_server.rb & |
| 29 | ``` |
| 30 | |
| 31 | - Run the client |
| 32 | ```sh |
| 33 | $ # from this directory |
| 34 | $ bundle exec ./greeter_client.rb |
| 35 | ``` |