Port a whole app
The goal: a standalone Rails 8 app (Hotwire, Tailwind, daisyUI) that does what the original does, with the original kept only as reference. The app stays runnable at every step:
- Grill: every decision the port depends on is settled with you and written as an ADR in
rails/port/DECISIONS.md. - Record the whole app over HTTP or the CLI: Record and replay.
- Front door: Rails owns the entry point and proxies what is not ported yet: Front door and wire.
- Port route by route, lowest wave first, replaying after each.
- Lift when nothing falls back: Lift and cut-over.
The decisions
- Shape and scope: which entry points, every feature or drop dead ones, admin areas, APIs.
- Frontend: rebuild every page as ERB + Turbo + Stimulus + daisyUI (default); which theme.
- Equivalence bar: JSON exact (default); HTML by visible text (default), status only, or exact.
- Data: the same database and tables first, or a new schema with a data migration.
- Auth and sessions: password hash format, cookies and API tokens that must keep working.
- Compatibility: URLs, JSON field names, status codes, env vars, uploads, webhooks, emails.
- Background work and realtime: Active Job on Solid Queue; Action Cable / Turbo Streams.
- Checkpoints and cut-over: when to stop for your go-ahead, and the deploy target.
The map
A whole-app port outlasts one session, so rails/port/MAP.md carries it between sessions: the
goal, an index of the ADRs, every route and unit with its state (open, claimed, done), open
questions and what is out of scope. ruby-anything app status <repo> --write generates
rails/port/PORT_MAP.md from what is measured.