-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
32 lines (19 loc) · 849 Bytes
/
firebase.js
File metadata and controls
32 lines (19 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import firebase from "firebase/compat/app";
import "firebase/compat/firestore";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyDJiUdhrcAeAL6nlOE5cxAusg_-T68anmY",
authDomain: "uber-eats-clone-e9db8.firebaseapp.com",
projectId: "uber-eats-clone-e9db8",
storageBucket: "uber-eats-clone-e9db8.appspot.com",
messagingSenderId: "209393563809",
appId: "1:209393563809:web:5b2132657c51987d5258e0",
};
// Initialize Firebase
// if there is no firebase app, then initialize, otherwise use the existing app
!firebase.apps.length ? firebase.initializeApp(firebaseConfig) : firebase.app();
const db = firebase.firestore();
export { db };
export default firebase;