This is a Next.js application built with Firebase Studio. It provides a style questionnaire, AI-powered recommendations, and a simulated payment flow to receive a personalized style report.
-
Set up Environment Variables:
- Create a
.env.localfile in the root directory. - Add your Firebase project configuration keys (prefixed with
NEXT_PUBLIC_FIREBASE_) and yourGOOGLE_API_KEYfor Genkit. See.env.local.exampleor the.env.localgenerated by the App Prototyper for the required variable names. - For deployment, ensure these environment variables are set in your Firebase Hosting/Functions environment.
- Create a
-
Install Dependencies:
npm install
-
Run the Development Server:
npm run dev
The application will be available at
http://localhost:9003(or the port specified inpackage.json). -
Run Genkit Developer UI (Optional): To inspect and test Genkit flows locally:
npm run genkit:dev
Or for watching changes:
npm run genkit:watch
Access the Genkit Developer UI at
http://localhost:4000.
- Style Questionnaire: A multi-step form to gather user input on body line, scale, and shape.
- AI-Powered Recommendations: Uses Genkit with Google AI to generate personalized style advice.
- Direct Report Flow: Users complete the questionnaire, provide an email, and receive their report after a simulated payment. No user accounts are required.
- Styling: Uses ShadCN UI components and Tailwind CSS.
- Build the Application:
npm run build
- Deploy:
Ensure your Firebase CLI is configured and you are logged in.
Make sure your Firebase environment has all necessary environment variables set (see Step 1 of "Getting Started").
firebase deploy