Download firebase.js from Jessedbrown/ListItems: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/Jessedbrown/ListItems/resolve/main/firebase.js
- Command line
-
hf download hf://Jessedbrown/ListItems/firebase.js
-
curl -L -o firebase.js https://huggingface.co/Jessedbrown/ListItems/resolve/main/firebase.js
530 Bytes
| import firebase from "firebase"; | |
| import '@firebase/firestore' | |
| const firebaseConfig = { | |
| apiKey: process.env.REACT_APP_FIREBASE_API_KEY, | |
| authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, | |
| projectId: "todo-rnf-610c9", | |
| storageBucket: "todo-rnf-610c9.appspot.com", | |
| messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID, | |
| appId: process.env.REACT_APP_FIREBASE_APP_ID | |
| } | |
| if (!firebase.apps.length) { | |
| firebase.initializeApp(firebaseConfig) | |
| } | |
| const db = firebase.firestore() | |
| export {db} | |