-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
40 lines (27 loc) · 1.01 KB
/
firebase.js
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
33
34
35
36
37
38
39
40
// Import firebase
import * as firebase from "firebase";
// 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, you have to paste here the object that comes from firebase
const firebaseConfig = {
apiKey: "AIzaSyAlw9-tuyVi40RBkB28MBK_BH-NFW6Zlo8",
authDomain: "lunchapp-20467.firebaseapp.com",
databaseURL: "https://lunchapp-20467-default-rtdb.firebaseio.com",
projectId: "lunchapp-20467",
storageBucket: "lunchapp-20467.appspot.com",
messagingSenderId: "329259133643",
appId: "1:329259133643:web:7dbaebb10763974318c94e"
};
// Initialize Firebase
/*let app;
if (firebase.apps.length === 0) {
console.info({ firebase });
app = firebase.initializeApp(firebaseConfig);
} else {
app = firebase.app();
}*/
firebase.initializeApp(firebaseConfig);
const auth = firebase.auth();
//const storage = firebase.storage();
const database = firebase.database();
export { auth, database, firebase };