https://github.com/rmosolgo/one-way
Playing around with the idea of Flux in Ruby
https://github.com/rmosolgo/one-way
Last synced: 3 months ago
JSON representation
Playing around with the idea of Flux in Ruby
- Host: GitHub
- URL: https://github.com/rmosolgo/one-way
- Owner: rmosolgo
- Created: 2015-03-31T02:46:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T05:11:32.000Z (almost 11 years ago)
- Last Synced: 2025-10-06T14:49:43.967Z (3 months ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# One-Way
What if you had Flux on the server, in Ruby?
- Views render HTML based on stores
- Stores are singletons that hold values
- Actions are triggered by HTTP post, stores can respond to them
- Actions either render new HTML _or_ re-render the refering view.
- You can imagine actions write to a DB. Stores reload initial values from the DB on startup.
Rack is hard. Reloading code is hard.
## Example
- Make-believe API: https://github.com/rmosolgo/one-way/blob/master/spec/support/dummy_app.rb
- You could start up the dummy app with `bundle exec rake serve`.
