npm install firebase
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyCSbkYdcZNDwa1F2I8qLGc7dGXtb1NxI8U",
authDomain: "egginhealth.firebaseapp.com",
projectId: "egginhealth",
storageBucket: "egginhealth.appspot.com",
messagingSenderId: "205167297540",
appId: "1:205167297540:web:ea0118618a796c04a3e151",
measurementId: "G-YB4XT3DFPX"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);