https://github.com/hopsoft/sr_mini
A single file Rails app that will have you running a StimulusReflex and CableReady demo in just 2 steps.
https://github.com/hopsoft/sr_mini
rails ruby ruby-on-rails single-page-app spa stimulus-reflex stimulusreflex
Last synced: 2 months ago
JSON representation
A single file Rails app that will have you running a StimulusReflex and CableReady demo in just 2 steps.
- Host: GitHub
- URL: https://github.com/hopsoft/sr_mini
- Owner: hopsoft
- License: mit
- Created: 2021-03-11T18:22:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-05T04:04:21.000Z (about 4 years ago)
- Last Synced: 2025-03-27T23:32:59.260Z (3 months ago)
- Topics: rails, ruby, ruby-on-rails, single-page-app, spa, stimulus-reflex, stimulusreflex
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 138
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
# SR Mini
A **single file [Rails](https://github.com/rails/rails) app** that will
have you running a [StimulusReflex](https://github.com/hopsoft/stimulus_reflex)
and [CableReady](https://github.com/hopsoft/cable_ready) demo in just **2 steps**.### 🤯 The Real Single Page App™
## Quick Start
1. `git clone https://github.com/hopsoft/sr_mini.git`
1. `cd /path/to/sr_mini && ruby application.rb`
1. ...and, you're up and running a Rails app with StimulusReflex. Now visit http://localhost:3000 in a browser.## Prerequisites
1. [ruby](https://www.ruby-lang.org/en/)
1. [node](https://nodejs.dev)
1. [yarn](https://classic.yarnpkg.com/lang/en/)
1. [redis](https://redis.io)## Source Code
- [`./index.js`](https://github.com/hopsoft/sr_mini/blob/main/index.js) - a single file with all of the JavaScript
- [`./application.rb`](https://github.com/hopsoft/sr_mini/blob/main/application.rb) - a single file Rails app