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

https://github.com/nning/rails51-websocket-react

Prototype for server push with ActionCable and React
https://github.com/nning/rails51-websocket-react

prototype rails rails5 react websocket

Last synced: 4 months ago
JSON representation

Prototype for server push with ActionCable and React

Awesome Lists containing this project

README

          

# Rails 5.1, WebSocket, React Prototype

This application demonstrates the integration of Rails 5.1, ActionCable
(WebSocket), and React to accomplish client live updates via server push.

PostgreSQL and redis servers are required. Run `rake db:seed` to generate
sample data. Updates can be triggered for example by the following commands:

* Create:
`rails runner FactoryGirl.create(:company)`
* Update:
`rails runner Company.first.change`
* Delete:
`rails runner Company.last.destroy`