🚀 Add a Web App & Copy the SDK
Now you need to register your web app with Firebase to get the keys (SDK) to connect them.
→ From your new project's dashboard, click "+ Add app".
→ Select the Web icon (it looks like </>).
→ In the "App nickname" field, enter your app's name (e.g., "Gemini Drive").
→ Click "Register app".
→ In the second step copy the generated SDK code. This is the key to connecting your app to Firebase
It will look something like this:
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
// 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
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR-PROJECT-ID.firebaseapp.com",
projectId: "YOUR-PROJECT-ID",
storageBucket: "YOUR-PROJECT-ID.appspot.com",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
→ Click "Continue to console".
Your web app is now registered in your Firebase project.