Skip to content
[WIP] An implementation of TodoMVC using Ruby on Rails and StimulusJS
Ruby HTML JavaScript CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
storage
test
vendor
.browserslistrc
.gitignore
.prettierignore
.ruby-version
.standard.yml
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
babel.config.js
config.ru
package.json
postcss.config.js
prettier.config.js
yarn.lock

README.md

Lines of Code - app directory Maintainability Ruby Style Guide

Stimulus TodoMVC

An implementation of TodoMVC using Ruby on Rails and StimulusJS.

Expands on the original goals of TodoMVC by providing a full application... including a server and database.

Table of Contents

Demo

https://stimulus-todomvc.herokuapp.com

You may notice some latency related to hosting on free tier services.

Why

Many developers are unaware that it's possible to build responsive "modern" Single Page Applications (SPAs) with default Rails tooling.

The user experience may not strictly match what's promised by pure JavaScript solutions, but it is good enough for the vast majority of use cases. Especially when you consider the deveopment, deployment, operating, and maintenance costs.

Local Setup

  1. Install dependencies

  2. Clone the repo

    git clone https://github.com/hopsoft/stimulus_todomvc.git
  3. Switch into the project folder

    cd stimulus_todomvc
  4. Run the setup command

    bin/setup
  5. Start the rails server

    bin/rails server
  6. See the app in action

    To see the application in action, open a browser window and navigate to http://localhost:3000. That's it!

Next Steps

If you find this approach lacking, consider giving StimulusReflex a try before reaching for a complex JavaScript framework.

Contributing

This project uses Standard and Prettier to minimize bike shedding related to code formatting.

Please run ./bin/standardize prior submitting pull requests.

You can’t perform that action at this time.