Not so long ago Firebase team announced new called A new database has many improvements and new abilities. Even now in beta, it has almost the same limitation like the old brother (100 000 concurrent connections). From obvious advantages: document database Firestore. Firebase Realtime Database scalability multi-region support document-oriented data-structure! easy querying offline support (even for web) So, if you feel ready to dive into the future of this tutorial is for you! serverless technologies During this tutorial, I will call as . Firebase Realtime Database RTDB How to import data? The first question you might ask yourself is how to push data to the new database. Old was great with the features of export/import database as the single JSON file. RTDB For the new we need to implement a mechanism by yourself. Let’s assume you are trying to migrate from to , so you need to export your current database snapshot. If you don’t have RDBM instance you can just use any JSON data to test this approach. Cloud Firestore, RTDB Firestore Script to load data Why instead of Firebase admin SDK Firebase SDK? At the current point, there are still problems with pushing nested arrays to firebase using (tested in 4.6.1). If you try to set nested arrays using Firebase SDK you will get something like this: Firebase SDK _Function DocumentReference.set() called with invalid data. Nested arrays are not supported._ Authentication To authorize our application we need to export service key. Firebase Console In the click on the settings wheel next to the section and choose option. Firebase Console Overview Users and permissions You’ll be landed on . Choose tab and fill it with data as shown in the screenshot above. Fill checkbox so you will be able to your key and use it in the script. After creation, you will be asked for the location to save the key. Let’s save it as permissions page Service accounts Furnish a new private key, download service-key.json const admin = require('./node_modules/firebase-admin');const serviceAccount = require("./service-key.json"); admin.initializeApp({credential: admin.credential.cert(serviceAccount),databaseURL: "https://YOUR_DB.firebaseio.com"}); — property will be filled by just created credentials service account key — is the name of your Database instance + firebaseio.com databaseURL and https://cf-studio-dev.firebaseio.com https://cf-studio.firebaseio.com Rest of the script As long as Arrays are also objects this script is fully ready to use. $ node json-to-firestore.js Keep in mind that script relies on few files: — npm module, you can install it locally to the folder of the script firebase-admin — file we’ve generated in the section service-key.json Authentication — actually the data we want to push to our data.json Firestore Conclusion looks very promising. And even despite that fact that it’s doesn’t mean you should not get your hands on it. Already well known Firebase product called (still in beta) have already been used by thousands of projects. Cloud Firestore still in beta Cloud Functions In this article, I’ve covered an easy way to submit data to . If you are interested in configuring with the Framework Learn . JSON Cloud Firestore Firebase hosting Angular How Get to From Zero to Production with Angular, Firebase, and GitLab CI