-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-config.js
More file actions
21 lines (17 loc) · 891 Bytes
/
firebase-config.js
File metadata and controls
21 lines (17 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { initializeApp } from "firebase/app";
import { getDatabase, ref, set, push, onValue, query, limitToLast, get } from "firebase/database";
import { getStorage, ref as storageRef, getDownloadURL, listAll, getMetadata } from "firebase/storage";
const firebaseConfig = {
apiKey: "AIzaSyCljuE8wLZ2iTvOpZrcLrkMWif1IXnUPVA",
authDomain: "key-github-w.firebaseapp.com",
projectId: "key-github-w",
storageBucket: "key-github-w.firebasestorage.app",
messagingSenderId: "380768606454",
appId: "1:380768606454:web:73c3235a86323c1eabb4d7",
measurementId: "G-LQLSRHD0F3"
};
const app = initializeApp(firebaseConfig);
const db = getDatabase(app);
const storage = getStorage(app);
console.log("Firebase initialized successfully"); // Debug log
export { db, ref, set, push, onValue, query, limitToLast, get, storage, storageRef, getDownloadURL, listAll, getMetadata };