blob: 668baf3eb71e43e03c0daa345db4918353e4f42d [file] [log] [blame] [view]
Tim Emiola49f3ccd2015-02-19 11:09:19 -08001gRPC Ruby Helloworld
2====================
3
4INSTALLATION PREREQUISITES
5--------------------------
6
7This requires Ruby 2.x, as the gRPC API surface uses keyword args.
8
9INSTALL
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
22USAGE
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```