Skip to content

Hotwire application created as an exercise, converting a Rails app created with my rails-7.1-quickstart template.

License

Notifications You must be signed in to change notification settings

riccardo-giomi/rails-todo-list

Repository files navigation

Rails TODO list

A Ruby on Rails 7.1 application that allows to create, change, delete and reorder TODO notes.

This is a simple exercise in Hotwire and StimilusJS, starting from a "normal" Rails application created with my quickstart template.

Drag-and-drop re-ordering is accomplished with:

Prerequisites

These are the Ruby and Bundler versions the application was bundled with, more recent versions should also work:

  • Ruby 3.2.2
  • Bundler 2.4.22

You will also need SQLite3 and libvips (see here for more information).

Installation

The following commands will download the app's code, download or update the required Ruby Gems, and prepare a database for the application.

git clone https://github.com/riccardo-giomi/rails-todo-list
cd rails-todo-list
bundle
bin/rails db:setup

Five example Todos are available as seeds:

bin/rails db:seed

The specs are still incomplete, missing examples for sorting and general Hotwire behaviour, but what is available can be run with:

bundle exec rspec

The server can be started with:

bin/dev

The application will be available to a browser at http://localhost:3000.

About

Hotwire application created as an exercise, converting a Rails app created with my rails-7.1-quickstart template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published