Sha256: 0349758f9d1a81954240da50faa9d44375bcb3efcc63daaf42ce17cbb8b02d4f

Contents?: true

Size: 805 Bytes

Versions: 2

Compression:

Stored size: 805 Bytes

Contents

# Lite Cable Sinatra Demo

Sample chat application built with [Sinatra](http://www.sinatrarb.com) and Lite Cable.

## Usage

Install dependencies:

```sh
bundle install
```

Run server:

```sh
bundle exec puma
```

Open your browser at [localhost:9292](http://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

This example also can be used with [AnyCable](http://anycable.io).

You need [`anycable-go`](https://github.com/anycable/anycable-go) installed.

Just run `Procfile` with your favourite tool ([hivemind](https://github.com/DarthSim/hivemind) or [Foreman](http://ddollar.github.io/foreman/)):

```sh
hivemind
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
litecable-0.6.0 examples/sinatra/README.md
litecable-0.5.0 examples/sinatra/README.md