Upload Json Data in Batch files in Firebase Firestore.
Configuration:
- Put all your json files under files folder.
- Install following packages: ** npm install firebase firebase-admin**
- Now configure uploader.js file. Add Firebase Database Url in databaseURL: "Your_FireStore_Database_Url"
- Create a private key for firebase account and add in root directory and give path in uploader.js file as below: var serviceAccount = require("./service_key.json");
- Start node server ==>** react-native start**
- run node uploader.js from terminal and data will be uploaded to firebase firestore.
Steps to create private key:
- Go to Project setting.
Steps to get the Firestore Database Url:
- Goto Firebase Database.
- You will see your database name. Copy that. Check the red circle marked in screenshot.



