Skip to content

simple Rails 6 app based on Twitter with real time posts and likes using ActionCable, CableReady, Redis and StimulusReflex. Bootstrap as CSS framework, Postgres as database, Font-Awesome for icons.

Notifications You must be signed in to change notification settings

tmtocb/live-post_rails_stimulusreflex

Repository files navigation

Live-Post app - real time posts and likes/reposts.



Stack

  • Ruby as language.
  • Rails as framework.
  • Postgres as database.
  • Heroku for deployment in production.
  • Bootstrap a CSS framework.
  • SASS for Front-End styling.
  • CSS3 for Front-End styling.
  • JavaScript for scripts and Front-End styling.
  • HTML5 for Front-End styling.
  • ActionCable for integration of websockets and stream of channels.
  • Redis as a dependency for StimulusReflex and for Heroku.
  • StimulusReflex for reactive real time updates with reflexes by intercepting user interactions and passing them to Rails over real-time websockets that change the application state.
  • CableReady to broadcast DOM updates from multiple clients at once using ActionCable, notify the users and update the UI, real time updates for posts.
  • Font-Awesome as an icon toolkit
  • better_errors gem in development

Configuration & dependencies

System dependencies

Ruby: 2.7.2p137

Rails: 6.0.3.4

Redis: 4.2.5

database: postgresql

Configuration

git clone https://github.com/tmtocb/live-post

bundle install

install stimulus_reflex: bundle exec rails stimulus_reflex:install

Empty database

rails db:drop db:create db:migrate

Run the app

rails s

About

simple Rails 6 app based on Twitter with real time posts and likes using ActionCable, CableReady, Redis and StimulusReflex. Bootstrap as CSS framework, Postgres as database, Font-Awesome for icons.

Topics

Resources

Stars

Watchers

Forks