| description | Setup Firebase Authentication and Firestore for the Signify app |
|---|
Follow these steps to fully configure the backend for Signify.
- Go to Firebase Console.
- Click "Add project".
- Name it
Signify(or similar). - Disable Google Analytics (optional, makes setup faster).
- Click "Create Project".
- On the Project Overview page, click the Web icon (
</>). - App nickname:
Signify-Web. - Uncheck "Also set up Firebase Hosting" (we are using Vercel).
- Click "Register app".
- COPY the
firebaseConfigobject shown on screen. It looks like this:const firebaseConfig = { apiKey: "AIzaSy...", authDomain: "...", projectId: "...", storageBucket: "...", messagingSenderId: "...", appId: "..." };
- Go to Build > Authentication in the left sidebar.
- Click "Get Started".
- Select "Email/Password" from the Sign-in method list.
- Toggle "Enable".
- Click "Save".
- Go to Build > Firestore Database.
- Click "Create Database".
- Choose a location (e.g.,
nam5 (us-central)). - IMPORTANT: Start in Test Mode.
- Security Warning: Test mode allows anyone to read/write for 30 days. For a hackathon/demo, this is fine. For production, you will need security rules.
- Click "Create".
- Open
services/firebaseService.tsin your editor. - Replace the
firebaseConfigobject (blocks lines 15-22) with the ONE you copied in Step 2. - You can either hardcode them (easier for hackathon) or use environment variables.
- Run
npm run devlocally. - Create a new account on the Login screen.
- Check your Firebase Console > Authentication > Users tab. You should see the new user there.