Created
July 12, 2023 22:56
-
-
Save willie-hung/20bf9b273492512b1d8643c1f182d81c to your computer and use it in GitHub Desktop.
post_7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initializeApp } from "firebase/app"; | |
import { getFirestore } from "firebase/firestore"; | |
const firebaseConfig = { | |
apiKey: YOUR_API_KEY, | |
authDomain: YOUR_AUTH_DOMAIN, | |
projectId: YOUR_PROJECT_ID, | |
storageBucket: YOUR_STORAGE_BUCKET, | |
messagingSenderId: YOUR_SENDER_ID, | |
appId: YOUR_APP_ID, | |
measurementId: YOUR_MEASUREMENT_ID, | |
}; | |
const app = initializeApp(firebaseConfig); | |
const db = getFirestore(app); | |
export { db }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment