The Definitive Guide to Hotwire and Django
$33.99
Minimum price
$39.99
Suggested price

The Definitive Guide to Hotwire and Django

About the Book

Demo Link

This book will help you to learn Hotwire with Django in systematic way.

By the end of this book, you will be able to:

  1. Learn Howtwire includes Turbo and Stimulus, and what problem they can help solve.
  2. Jump start frontend project bundled by Webpack.
  3. Setup Turbo and Stimulus.
  4. Learn how page navigation works in Turbo Drive
  5. Understand what is cache in Turbo Drive and how preview works.
  6. Learn what is Turbo Frame and how it works.
  7. Build Inline Editing feature with Turbo Frame.
  8. Learn what is Stimulus and how Stimulus Controller work.
  9. What is Stimulus ValuesTarges, and Actions
  10. Use Stimulus to build a Datetime picker and improve form submission process.
  11. Understand how to use events to do communication among Stimulus controllers
  12. Build Type as search feature with Stimulus, Turbo and Django.
  13. Learn what is Turbo Stream and how it works.
  14. How to build Collaborative Editing based on Websocket and Turbo Stream

With Hotwire, we can bring SPA-like experience to our Django web app:

  1. We do NOT need heavy frontend solution such as React, Vue
  2. We do NOT need JSON and Django REST framework
  3. We will use Django form, Django templates and they still rock.

About the Author

MichaelYin
MichaelYin

Michael Yin is a full stack developer from China, and he loves to write high-quality tutorial about programming.

He has published 5 books on Leanpub.

He also published Celery courses on testdriven.io

He is also the founder of a Digital Agency AccordBox and available for remote job.

Table of Contents

  • 1. Introduction
  • 2. Create A project
  • 3. Setup Turbo
  • 4. Create Task App
  • 5. Render Django Form with Tailwind CSS Style
  • 6. Explore Turbo Drive (Page Navigation)
  • 7. Explore Turbo Drive (Cache)
  • 8. Explore Turbo Drive (Javascript, CSS)
  • 9. Explore Turbo Drive (3-party Javascript)
  • 10. Turbo Drive and Django form validation
  • 11. Prepare to learn Turbo Frame
  • 12. Turbo Frame Basics
  • 13. Turbo Frame and Django Form
  • 14. Inline Editing with Turbo Frames
  • 15. Prepare Django app to learn Stimulus Basics
  • 16. Stimulus Controller Basics
  • 17. Stimulus Controller (Actions, Values)
  • 18. Stimulus Controller (Targets, CSS classes)
  • 19. Stimulus Controller (Lifecycle)
  • 20. Stimulus Controller (3-party Resources)
  • 21. Stimulus Controller (Date Picker)
  • 22. Stimulus Controller (Form Submission)
  • 23. Prepare Django app to learn Stimulus and Turbo Frame
  • 24. Stimulus Controller (Flash Message)
  • 25. Build Stimulus Controller for Modal
  • 26. Load Form in the Modal
  • 27. Handle Form Submission in Modal
  • 28. Full Page Redirect in Modal
  • 29. Communication Among Stimulus Controllers Via Events
  • 30. Prepare Django app to learn Stimulus Stream
  • 31. Import Turbo Frame
  • 32. Turbo Stream Basics
  • 33. Use Turbo Stream to improve inline editing
  • 34. Filtering on the List Page
  • 35. Auto Search
  • 36. RealTime Update based on Websocket (Part 1)
  • 37. RealTime Update based on Websocket (Part 2)
  • 38. Next Steps

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$11,716,512writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub