Skip to content

Latest commit

 

History

History

chat

Bi-directional Streams Chat Demo

Running the demo

You can run the demo directly, or via Docker

Build & Run directly

Compiling the protos

We first need to compile the chat.proto file into ruby code.

make compile

That will result in a new files

  • chat_pb.rb
  • chat_services_pb.rb ruby gRPC client/server stubs

You can then install the dependencies and run the demo

Install Dependencies

Run bundle install.

Run the Clients/Servers

Start the server with make server, and the start two clients with make client.

Build and Run via Docker

If you have Docker installed, you can run the demo by running

  • make docker-build
  • make docker-server
  • make docker-client chat client 1
  • make docker-client chat client 2