scrimba
Build an Instagram clone in React
Pages, lazy/suspense & one source of truth
Page Routes - One Source of Truth
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Page Routes - One Source of Truth
AboutCommentsNotes
Page Routes - One Source of Truth
Expand for more info
src
lib
firebase.js
run
preview
console
//import { seedDatabase } from '../seed';

const config = {
apiKey: 'AIzaSyBzbDVpXMNirX9Frhm465m0vUFTNQhHM1w',
authDomain: 'instagram-e8841.firebaseapp.com',
databaseURL: 'https://instagram-e8841.firebaseio.com',
projectId: 'instagram-e8841',
storageBucket: 'instagram-e8841.appspot.com',
messagingSenderId: '1052235904858',
appId: '1:1052235904858:web:eac84ef7c0e15590916563'
};

const firebase = window.firebase.initializeApp(config);
const { FieldValue } = window.firebase.firestore;

//seedDatabase(firebase);

export { firebase, FieldValue };
Console
/index.html
-3:17