You can run the demo directly, or via Docker
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
Run bundle install
.
Start the server with make server
, and the start two clients with make client
.
If you have Docker installed, you can run the demo by running
make docker-build
make docker-server
make docker-client
chat client 1make docker-client
chat client 2