Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 15 hours ago
JSON representation

A single file Rails app that will have you running a StimulusReflex and CableReady demo in just 2 steps.

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