Go to Project Settings (click the gear icon ⚙️ next to 'Project Overview' in your Firebase Console). Your Project ID is listed on the General tab. It will look like 'trendlens-ai-f123b'.
Open the `.firebaserc` file in your project's root directory. Replace the placeholder text with your actual Firebase Project ID.
In your project's dashboard, click the web icon (</>) to add a new web app. Give it a name (e.g., 'TrendLens Web') and click 'Register app'.
After registering, Firebase will show you a `firebaseConfig` object. Copy the values for `apiKey`, `authDomain`, `projectId`, etc.
Open the `.env` file in the project's root directory. Paste the values from the `firebaseConfig` object into the corresponding `NEXT_PUBLIC_` variables in the file.
In the Firebase Console, go to Authentication > Sign-in method tab. Click on 'Email/Password' and enable it.
Go to Firestore Database > Create database. Start in 'production mode' and choose a region. This is where your user data will be stored.
Once all the steps above are complete, your app is ready. You can deploy it using Firebase App Hosting from your terminal with `firebase deploy`.