About this book
This open source book (Hotwire Django Tutorial) is to help Django developers to learn Hotwire
Below are some popular websites built by Hotwire:
- Github (https://github.com/), Github is built using Turbo and Catalyst (A tech inspired by Stimulus)
- Hey (https://hey.com/), Hey is an email service and productivity platform that aims to revolutionize the way people manage their email
- Basecamp (https://basecamp.com/), Basecamp is a project management and collaboration tool designed to help teams stay organized and work together effectively
- Forem (https://github.com/forem/forem): Forem is an open-source platform for building online communities, dev.to is built using Forem.
Hotwire has become the default frontend solution in
Rails, and it is also very popular in the
PHP community (
For now, there is no good content about Hotwire in the Django community, so I decided to publish this book to help the developers.
By the end of this book, you will be able to:
- Learn Hotwire includes
Stimulus, and what problem they can help solve.
- Jump start frontend project bundled by Webpack.
- Setup Turbo and Stimulus.
- Learn how page navigation works in
- Understand what is cache in Turbo Drive and how preview works.
- Learn what is
- What are Stimulus
- Use Stimulus to build a Datetime picker and improve the form submission process.
- Learn about 15 UI examples (
Type as Search,
Form Validation, etc.), which can help you solve the UI interaction problem in many cases.
With Hotwire, we can bring
SPA-like experience to our Django web app:
- We do NOT need heavy frontend solution such as React, Vue, which requires giving over control of the DOM to their framework
- We do NOT need JSON and Django REST framework
- We will stick with Django form, Django templates.
All the content of this FREE ebook come from The Definitive Guide to Hotwire and Django
If you are interested in Hotwire and want to learn more advanced stuff, please consider buying the book.
If you have any questions, please feel free to open an issue
If you want to talk with the author Michael YIn, you can follow me on Twitter