{"repo":"dalenguyen/firestore-backup-restore","free":true,"listed":false,"github":"https://github.com/dalenguyen/firestore-backup-restore","clone":"git clone https://github.com/dalenguyen/firestore-backup-restore.git","description":"NPM package for backup and restore Firebase Firestore","language":"TypeScript","stars":496,"topics":["firestore","firestore-helper","firebase","npm-package","firestore-database","backup","restore","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"firestore-export-import NPM package for backup and restore Firebase Firestore You can export and import data from firestore with sub collection. Installation Install using npm . Get Google Cloud Account Credentials from Firebase You can Generate New Private Key from Project Settings from Firebase Console. After that you need to copy the databaseURL for initiating the App. Usage You have to import this package in a JavaScript file and work from there. Initialize Firebase App You have initialize the Firebase App in order to use Firestore service. It doesn't matter if you initialize it by using this plugin method or the offical way. Export data from firestore You can export collection and sub collection from your data. The sub collection is optional. Export options - OPTIONAL All export options are optional. Full interface: Set includeSubcollections: false to skip subcollection traversal during export — useful for large collections where subcollection data isn't needed: Set showLogs: true to log export progress ( Starting backup of N collection(s) , Backed up M document(s) from \"...\" ): Export data from document Backup a document with sub collections Sub collections will be added under 'subCollection' object. Get all collections data This is a suggestion from jcummings2 and leningsv The ['collectionName1', 'collectionName2'] is OPTIONAL, you can remove this parameter to get all of the current collections in your firestore. The result is an object of collection's data. Export dat","default_branch":null,"files":null,"tree":[],"storefront":"/r/dalenguyen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dalenguyen/firestore-backup-restore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}