Home

Awesome

Sample chat application built with Hanami and LiteCable (compatible with AnyCable)

The application is literally the porting of the LiteCable Sinatra example to Hanami (kudos to palkan for its work :clap: :clap: :clap: ).

Usage

Install dependencies:

bundle install

Run server

bundle exec puma

Open your browser at localhost:9292, enter your name and a chat room ID (anything you want).

Then open another session (another browser, incognito window) and repeat all steps using the same room ID.

Now you can chat with yourself!

AnyCable usage (for production)

This example also can be used with AnyCable, it requires Redis (see the docs for more details).

Just run Procfile with your favourite tool (hivemind or Foreman):

hivemind

or

foreman start

Notes

Contributing

Bug reports and PRs are welcome on GitHub at https://github.com/nickgnd/hanami-chat-example

Credits