An open API service indexing awesome lists of open source software.

https://github.com/tmtocb/live-post_rails_stimulusreflex

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.
https://github.com/tmtocb/live-post_rails_stimulusreflex

actioncable bootstrap cableready postgresql rails6 redis ruby ruby-on-rails stimulus-reflex

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

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

---

![](readme.gif)

---

## 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`