Rails 8 app splits front ends: Turbo for contractors, lean Stimulus-only page for customers
The founder of an estimate and invoice app for small trade businesses describes building two separate front ends in one Rails 8 monolith. Contractors, who use the app daily as an installed PWA, get Hotwire with Turbo and Turbo Streams for fast, app-like navigation and live updates. Customers, who open a single text-message link once, get a dedicated layout with only Stimulus and a few controllers, with no Turbo, ActionCable or third-party scripts. The customer page targets under 50 KB of gzipped JavaScript, and forms there use plain POST and redirect round trips. The heavy signature controller is loaded on demand, only when a sign block is present or the visitor first taps Draw.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in