Skip to content

zjromani/websocket_chat

Repository files navigation

Overview

This is a very basic chat app with Action Cable and Turbo Links.

Hosted on Heroku

To Run

bundle install

rails db:setup

rails s

By running rails db:setup you will get your local database seeded with some random users and two ChatRooms.

Open http://localhost:3000/ in your browser and in an incognito browser. Join a ChatRoom to chat and see messages appear in real time.

Sessions are managed with cookies. You will be assigned a random user if cookies['user'] is empty.

gif gif

ToDo

  • Rename Message#message column as it is confusing to do things like message.message
  • Add specs for 'Channels' since Rails 6 supports that out of the box now.
  • Authentication and basic user management.
  • Websockets to handle "someone is typing".
  • Websockets to handle people joining and leaving ChatRooms.
  • Better Styling.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published