NaokiIshimura / action-cable-example

Action Cable Example App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forked from

SophieDeBenedetto/action-cable-example

Change point

  • Update to rails 5.2.0.
  • Add user authentication when connecting to ActionCable.
  • Add user authentication when subscribing to ActionCable.
  • Add access restrictions to chatrooms.

Qiita


Chatty: The Rails 5 + Action Cable Example App

This is a really simple chatting app to demonstrate one implementation of Action Cable in a Rails 5 app. Users can sign up/log in with a username and create a chatroom or choose from an existing one to start real-time messaging.

For a walk-through of this application, and to learn more about Action Cable (it's awesome, btw), you can check out my article on the Heroku blog. You can view my deployment of this application here, or you can use the button below to deploy your own version (you'll need a Heroku account for that).

Deploy

To view an implementation of this project that uses multipe subscriptions to multiple chatrooms, check out this repo

Running Locally

You'll need:

  • Ruby 2.3.0
  • Postgres
  • Redis

Then, once you clone down this repo:

  • bundle install
  • rake db:create; rake db:migrate

And you're all set.

About

Action Cable Example App


Languages

Language:Ruby 60.4%Language:HTML 22.9%Language:JavaScript 11.1%Language:CSS 4.0%Language:CoffeeScript 1.6%