This Rails application demonstrates a simple to-do list using Rails 7, Stimulus JS, and PostgreSQL. It includes functionality to add to-do items, mark them as checked, and dynamically update their appearance using Stimulus.
- Add to-do items via a text input.
- Mark items as checked with a checkbox.
- Items marked as checked will display with a strikethrough style.
- Use of Rails 7 with Import Maps and Stimulus for front-end interactions.
- Persistent storage of to-do items using PostgreSQL.
To get the project running locally, follow these steps:
-
Clone the repository to your local machine:
git clone https://your-repository-url.git cd stimulus-sandbox
-
Install the required Ruby gems:
bundle install
-
Setup the database:
rails db:create rails db:migrate
-
Start the Rails server:
rails server
-
Visit
http://localhost:3000
in your web browser to view the application.
This project is open source and available under the MIT License.