Fantastic Hotwire tutorial that also includes lots of extra tips on security, DB performance, scripting, design systems, and much more. Thx, @alexandre_ruban!
The Turbo Rails Tutorial
Hotwire is the default frontend framework for Rails
With the release of Rails 7 in December 2021, Hotwire, which is the combination of Stimulus and Turbo, became the default frontend framework for Ruby on Rails applications.
While Stimulus has been around for quite some time now, Turbo is a brand new library for many developers in the Rails ecosystem.
What is Turbo?
We will learn about...
...but also about
- How to setup a Ruby on Rails 7 application
- How to create a nice design system
- How to make system tests with Capybara
- How to make unit tests with Minitest
- And much more!
Hi! I'm Alexandre 👋
I've been working with Turbo since its release in December 2020. I even contributed to turbo-rails along the way to add the features I needed.
The quote editor we will build in this tutorial is heavily inspired by an invoice editor I had to make with React. At the time, it was the only page that had to be very dynamic on the whole website.
Having to set up React felt like a huge amount of work. We had to add React to the project, manage the state of the page with Redux, add JSON endpoints, build our forms with Formik, think about how to display errors.
I decided to write this tutorial for you to benefit from what I learned at the time. If you like it, feel free to share it with your coworkers, or send me an email to say hi! I'll be very happy to hear from you!
Great work @alexandre_ruban 👌 with the hotwire introduction tutorial!!!, it's amazing, it helped me a lot to understand turbo basics.