-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
27 lines (21 loc) · 1.61 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
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.2.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.2.0/firebase-analytics.js";
import { getFirestore,serverTimestamp,deleteDoc,getDoc,addDoc,setDoc,doc,collection,query,updateDoc, where,getDocs} from "https://www.gstatic.com/firebasejs/10.2.0/firebase-firestore.js";
import { getAuth,onAuthStateChanged, signInWithPopup,createUserWithEmailAndPassword,signInWithEmailAndPassword,GoogleAuthProvider,signOut } from "https://www.gstatic.com/firebasejs/10.2.0/firebase-auth.js";
import { getStorage, ref,uploadBytesResumable,getDownloadURL } from "https://www.gstatic.com/firebasejs/10.2.0/firebase-storage.js";
const firebaseConfig = {
apiKey: "AIzaSyCcIVGkbZE_pv5vRC-cV4lupNnle0GJWt4",
authDomain: "hackathone-ebbb2.firebaseapp.com",
projectId: "hackathone-ebbb2",
storageBucket: "hackathone-ebbb2.appspot.com",
messagingSenderId: "424255166365",
appId: "1:424255166365:web:b661e66a2024ab0c954174",
measurementId: "G-DCWXKG19LR"
};
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
const auth = getAuth(app);
const provider = new GoogleAuthProvider();
const db = getFirestore(app);
const storage = getStorage(app);
export {app,serverTimestamp,deleteDoc,auth,getStorage,uploadBytesResumable,getDownloadURL,storage, ref,db,getDoc,collection,query,setDoc,signInWithPopup,updateDoc, where,getDocs,createUserWithEmailAndPassword,onAuthStateChanged,signInWithEmailAndPassword,signOut,doc,provider,GoogleAuthProvider,addDoc}