22 lines
756 B
JavaScript
22 lines
756 B
JavaScript
import { initializeApp } from "firebase/app";
|
|
import { getDatabase } from "firebase/database";
|
|
import { getAuth } from "firebase/auth";
|
|
import { getFirestore } from "firebase/firestore";
|
|
|
|
// Your Firebase config
|
|
const firebaseConfig = {
|
|
apiKey: "AIzaSyBfvjd5heEO3nS59rQSqY3Vsr36Pv2V3RU",
|
|
authDomain: "week6-fb-db.firebaseapp.com",
|
|
databaseURL: "https://week6-fb-db-default-rtdb.firebaseio.com",
|
|
projectId: "week6-fb-db",
|
|
storageBucket: "week6-fb-db.firebasestorage.app",
|
|
messagingSenderId: "854313991657",
|
|
appId: "1:854313991657:web:42859a9b1c0bd06f391f78",
|
|
};
|
|
|
|
// Initialize Firebase
|
|
const app = initializeApp(firebaseConfig);
|
|
export const db = getDatabase(app);
|
|
export const auth = getAuth(app);
|
|
export const firestore = getFirestore(app);
|