Skip to content

How I migrate from Firebase to Supabase safely

Hieu Vu edited this page Apr 11, 2023 · 8 revisions

This page reflects my analysis on my current project using Firebase and my strategy to migrate to Supabase safely

1. Analysis

Groceries Store app currently uses Firebase to store data and authentication feature. The app uses many SDKs from Firebase to get, sync data. Because data and authentication feature are not related, it is a good practice that we can migrate each part to Supabase separately.

2. Strategy

Because app data does not depend on any authentication feature, it is fine to start from this part first to make sure the app still function. Supabase supports each module separately and allows developer to use each part instead of installing lots of unrelated dependencies. I will take advantage of this to migrate the app.

Currently, the app gets data from firebase and cache in the SQLite database. So right after the app has data, I will export data from this database as CSV file then upload to Supabase. By doing this, my data remains unchanged and the step is very simple. For more details, see:

To be updated...

Clone this wiki locally