File size: 706 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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 }; |