blob: 1fc19a4f246da5d61e053e83796535ccbe4dec2e [file] [log] [blame] [view]
Tim Emiolaeb158ff2015-02-21 06:29:53 -08001gRPC in 3 minutes (Ruby)
2========================
Tim Emiola49f3ccd2015-02-19 11:09:19 -08003
Tim Emiolaeb158ff2015-02-21 06:29:53 -08004PREREQUISITES
5-------------
Tim Emiola49f3ccd2015-02-19 11:09:19 -08006
Tim Emiolaeb158ff2015-02-21 06:29:53 -08007This requires Ruby 2.1, as the gRPC API surface uses keyword args.
Tim Emiola49f3ccd2015-02-19 11:09:19 -08008
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.
Tim Emiolaeb158ff2015-02-21 06:29:53 -080014- *Temporary* Install the full gRPC distribution from source on your local machine and update path: in [Gemfile] to refer src/ruby within it.
15 - this is necessary until the gRPC ruby gem is published
Tim Emiola49f3ccd2015-02-19 11:09:19 -080016- Use bundler to install
17```sh
18$ # from this directory
19$ gem install bundler && bundle install
20```
21
Tim Emiolaeb158ff2015-02-21 06:29:53 -080022Try it!
23-------
Tim Emiola49f3ccd2015-02-19 11:09:19 -080024
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```