/greet-server-using-gRPC

A simple Greeting Server Implementation using Google RPC Framework

Primary LanguageRuby

greet-server-using-gRPC

A simple Greeting Server Implementation using Google RPC Framework

How to test this code?

  1. Clone the repo.
  2. cd greet-server-using-gRPC
  3. use ruby version > 2.3
  4. What I used is ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
  5. Use rvm to install this.
  6. rvm install 2.5.1
  7. rvm use ruby-2.5.1
  8. If you are facing issue, refer rvm website for help or google :)
  9. grpc_tools_ruby_protoc -I ./protos --ruby_out=lib --grpc_out=lib ./protos/greeter-service.proto
  10. ruby greeter-server.rb
  11. Open another tab, and execute: ruby greeter-client.rb
  12. You should see the output message.

Reference: https://grpc.io/docs/quickstart/ruby.html