blob: 4afea611a424d6461223b977103e51f2d42c119c [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.
Yang Gaocec80ed2015-02-24 23:45:00 -080014- *Temporary* Install the full gRPC distribution from source on your local machine and update path: in [Gemfile](https://github.com/grpc/grpc-common/blob/master/ruby/Gemfile) to refer src/ruby within it.
Tim Emiolaeb158ff2015-02-21 06:29:53 -080015 - 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```