1. Create a free Firebase project
Go to console.firebase.google.com → Add project → give it any name → skip Google Analytics.
Then in the project: Build → Firestore Database → Create database → Start in test mode → pick any location.
Then: Build → Authentication → Get started → under "Sign-in method" enable Email/Password → Save. (You'll use this to log in after connecting below.)
Then: Project settings (gear icon) → scroll to "Your apps" → click the "</>" web icon → register the app → on the SDK setup screen, click the "Config" option (not "npm" or "CDN") → copy the whole
firebaseConfig object shown.