firebase config initialize

Solutions on MaxInterview for firebase config initialize by the best coders in the world

showing results for - "firebase config initialize"
Peyton
20 Jun 2016
1import firebase from 'firebase';
2
3const firebaseConfig = {
4	// config file from firebase
5};
6
7const firebaseApp = firebase.initializeApp(firebaseConfig);
8
9// for database
10const db = firebaseApp.firestore();
11// for file uploading
12const storage = firebase.storage();
13// for authentication
14const auth = firebase.auth();
15// for google authentication
16const provider = new firebase.auth.GoogleAuthProvider();
17
18export { auth, provider, db };
19