Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-05T04:04:21.000Z (over 3 years ago)
- Last Synced: 2024-10-23T08:16:32.556Z (16 days ago)
- Topics: rails, ruby, ruby-on-rails, single-page-app, spa, stimulus-reflex, stimulusreflex
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 138
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Lines of Code](http://img.shields.io/badge/lines_of_code-76-brightgreen.svg?style=flat)](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