My app currently uses mongodb and I'm looking forward to migrating it to firebase instead.
How easy is it to do and are there things I have to watch out for.
Given that both MongoDB and Firebase are non-relational in nature, most of your data should map to Firebase cleanly. The Firebase REST endpoints support regular JSON, so getting your data in (and, back out if you choose) should also be easy. The main areas you need to keep watch for are:
The other thing to keep in mind is that Firebase isn't an all-or-nothing type of undertaking. Apps can definitely take advantage of the realtime, scaling, and platform features piecemeal.
Not specifically answering the question, but if you find Firebase lacking a few features which you you are used to with Mongo -
I found a node package which will allow you to run both with Firebase as the master DB.
Firebase
MongoDB
https://www.npmjs.org/package/mongofb
Isn't Firebase stores all its data in MongoDB?
Update May 2016
Apparently a page where Firebase was mentioned in MongoDB's site was removed (http://www.mongodb.org/about/production-deployments/)
After some search on their site I've found another page in their blog https://www.mongodb.com/post/45270275688/mongodbs-growing-ecosystem (mirror) where they say:
it’s great to see so many companies building on MongoDB. Here are just a few:
- Modulus. A Node.js platform as a service (PaaS) offering, Modulus includes MongoDB as its default data store. This follows related offerings from Meteor and Firebase.
An alternative to MongoDB would be RethinkDB and recently the team behind RethinkDB released Horizon, an open-source backend platform on NodeJS and that is kind of a locally hosted Firebase. Here's a nice talk about Horizon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With