by heroku-examples


Ruby WebSockets Chat Demo


This is a simple application that serves tasty WebSockets to your users with faye-websocket, Puma, and Sinatra.

Check out the live demo or read the docs.


To install all the dependencies, run:

bundle install

Next the app requires some env vars for configuration. A sample .env.sample is provided for running the app locally. You can copy .env.sample to .env which foreman will pick up.

Using foreman we can boot the application.

$ foreman start

You can now visit http://localhost:5000 to see the application.