Skip to content

hopsoft/stimulus_todomvc

Repository files navigation

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.