Skip to content

Instantly share code, notes, and snippets.

@willie-hung
Created July 12, 2023 22:56
Show Gist options
  • Save willie-hung/20bf9b273492512b1d8643c1f182d81c to your computer and use it in GitHub Desktop.
Save willie-hung/20bf9b273492512b1d8643c1f182d81c to your computer and use it in GitHub Desktop.
post_7
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