Migrate a 50-screen app from Firebase to Supabase with Claude Code
- Posted
- by Prayag (@prayag_dalal)
- Last checked
- Method:
- How we verify
Evidence: Described by posterThe person describes what happened in words, without screenshots or video.
Outcome
Going feature by feature, the poster used Claude Code to generate database schemas, write queries and fix daily errors; they report migrating about 85% of a 45–50 screen Flutter app from Firebase to Supabase in 10–20 days.
Poster says:~85% migrated in 10–20 days
This is the source's own number. We haven't measured it.
Agent
Prompt Recreated prompt
The source didn't share its exact prompt, so we wrote this from what it describes.
Here's a task I'd like your help with. Read it all the way through before you start. Goal: Help me move my app's backend from Firebase to Supabase, one feature at a time. Check with me first: Which feature should we move first? What I'll give you: - My app's code - My current Firebase data structure - A Supabase project Rules: - Move one feature at a time and make sure it works before the next. - Design the database tables and explain them before creating them. - If something is missing or unclear, ask me instead of guessing. - Don't delete Firebase data. Output: The migrated feature, the new tables, and a checklist of what's left. You'll know it worked when: each migrated feature works on Supabase and I know what's left to do.
Try this in:
Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini opens empty, so we copy the prompt for you to paste. Every button also copies it.
The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Here's a task I'd like your help with. Read it all the way through before you start. Goal: Move my app's backend from Firebase to Supabase one feature at a time, keeping each feature working before the next. Quick check first: tell me if anything below is missing or unclear. Inputs (fill in or confirm): - App code - Current Firebase data structure - Supabase project - Feature order Rules: - Design the Postgres schema for each feature from the Firestore structure; show it before creating tables. - Write row-level security policies that match current Firebase rules. - Migrate a copy of the data, never the live source, and verify counts. - Switch one feature in the app, test it, then move on. - Keep a log of daily errors and fixes. Checkpoint: Ask before deleting Firebase data or switching production users. If you get stuck: If a Firestore pattern doesn't map cleanly, explain the options. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: After each feature, compare record counts and run the feature's flows. Output: Schema, migration scripts, RLS policies and a progress log. Done when: each migrated feature works on Supabase with matching data.
Source
https://x.com/prayag_dalal/status/1963555583392714791
Related cases
- Migrate two websites from WordPress to Wagtail with Claude CodeRecreated promptEvidence: Described by poster
Over a weekend Claude Code migrated two sites from WordPress to Wagtail (PHP to Python), including server setup, data transfer, testing and fixes, and redesigned a homepage; the poster reports nothing broke and traffic and tools stayed in place.
Claude Code · Coding · Source date:
- Port a backend to Convex in four hours with Factory's DroidRecreated promptEvidence: Described by poster
The poster reports that Factory's Droid ported their tRPC/Drizzle custom backend to Convex in about 4 hours, with some bugs left to fix.
Factory Droid · Coding · Source date:
- Upgrade a plugin to a new framework alpha with Codex CLIEvidence: Screenshots or logs
A one-line `codex exec` loop read the Datasette 1.0a20 upgrade docs, fixed the failing tests, and got the datasette-checkbox plugin passing again.
OpenAI Codex CLI · Coding · Source date: