Download netflix-clone-using-react/src/lib/firebase.prod.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 706 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/lib/firebase.prod.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/lib/firebase.prod.js
-
curl -L -o firebase.prod.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/lib/firebase.prod.js
706 Bytes
| import Firebase from 'firebase/app'; | |
| import 'firebase/firestore'; | |
| import 'firebase/auth'; | |
| import { seedDatabase } from '../seed'; | |
| //we need to somehow seed the database | |
| //we need a config here, put your api details here | |
| const config = { | |
| apiKey: "AIzaSyD6rfFIRNC4j0YoRtZGi6vLlJ0M2baoffE", | |
| authDomain: "netflix-react-9480e.firebaseapp.com", | |
| projectId: "netflix-react-9480e", | |
| storageBucket: "netflix-react-9480e.appspot.com", | |
| messagingSenderId: "124358470674", | |
| appId: "1:124358470674:web:e265ab9bc66f7c4e9a3ccb" | |
| }; | |
| const firebase = Firebase.initializeApp(config); | |
| //dont uncomment this bcz it will dupliacte the database on firebase | |
| //seedDatabase(firebase); | |
| export { firebase }; |