Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to migrate data from Parse.com to Firebase

Tags:

firebase

I have two production apps that are currently using Parse.com. I have no plans on using Parse server, and I wanted to switch to the firebase service. I was wondering if there was a way to migrate my database from Parse.com to Firebase

like image 632
DanR Avatar asked Mar 23 '16 18:03

DanR


2 Answers

There are differences between Parse and Firebase that makes a straight migration not as easy as you would hope.

Parse is based on a relational database, where as Firebase stores all it's data in JSON - thus a "copy and paste" job isn't going to work here.

On top of that the way that the two platforms organise user authentication is completely different.

So unfortunately no easy solution here.

like image 152
dylankbuckley Avatar answered Sep 24 '22 18:09

dylankbuckley


Firebase has a import JSON option so if you get your data out of Parse.com as JSON, it can be imported.

However, the structure Parse uses to create relationships between data is (probably) going to be different than Firebase, so it's going to take some planning and coding to make the transition.

Once we had a plan, we found it easiest to just craft an importer App that would take the Parse.com data structure, and massage it to a Firebase format that worked for our app.

In some cases we had to start from scratch as the thought process is different from Parse (objects) to Firebase.

like image 21
Jay Avatar answered Sep 26 '22 18:09

Jay