Menu

Two front ends in one Rails 8 app: a Turbo dashboard and a Stimulus-only customer page
📰

Two front ends in one Rails 8 app: a Turbo dashboard and a Stimulus-only customer page

DEV Community: rails·Anton Chisliuk·6 days ago
#tPG2oT3r
#devtorails#devto#dev#customer#turbo
Long article (1085 words) — no AI summary yet.
Reading 0:00
15s threshold

Disclosure: this article was created with the help of AI. AI tools drafted it from my codebase and project notes, and it was edited and checked against the code before publishing. I'm the founder of the app it describes.

I'm building an estimate and invoice app for small trade businesses: plumbers, painters, handymen, crews of one to five people. The contractor writes an estimate on their phone and texts the customer a link. The customer opens it, picks an option, signs and sees how to pay the deposit.

So the app has two very different users. One opens it many times a day and has it on their home screen. The other opens it once, from a text message, maybe on one bar of signal in a basement. This post is about how I split the front end between them in one Rails 8 app, and a few choices that came out of designing for phones first.

The stack

It's one Rails 8.1 monolith on Postgres. Hotwire (Turbo and Stimulus) on the front end, Tailwind v4 for styles, importmap instead of a JS bundler.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.