Created
February 12, 2020 09:52
-
-
Save whaleen/7c45d337bd7940b9b858df998f2ccdc8 to your computer and use it in GitHub Desktop.
How to use Firebase Firestore with ReactJS. Firebase CRUD tutorial. (firestore-import-export snippet)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 3:12 https://www.youtube.com/watch?v=yyo_TcZCrS4 | |
const firestoreService = require('firestore-export-import'); | |
const serviceAccount = require('./serviceAccountKey.json'); | |
const databaseURL = "YOUR_DB_URL" | |
firestoreService.initializeApp(serviceAccount, databaseURL); | |
firestoreService.restore("data.json"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment