🌐 Live Site: https://what2wear.io
A smart outfit recommendation app that suggests what to wear based on current weather conditions.
- Node.js (version 18 or higher)
- pnpm package manager
-
Clone or download the repository
git clone <repository-url> cd what2wear
-
Install dependencies
pnpm install
-
Set up environment variables
Create a
.env.localfile in the root directory and add:OPENAI_API_KEY=your_openai_api_key_here OPENWEATHER_API_KEY=your_openweather_api_key_hereYou'll need to:
- Get an OpenAI API key from OpenAI Platform
- Get an OpenWeather API key from OpenWeatherMap
-
Start the development server
pnpm dev
-
Open your browser
Navigate to http://localhost:3000
pnpm build
pnpm startThe app analyzes weather conditions and provides personalized outfit recommendations using AI to help you dress appropriately for the day.
- Using gpt-3.5-turbo vs gpt-4.0-min for speed/quality
- Using generateText vs generateObject for structured response
- Generating vs linking product images
- Making 7 days worth of outfit weathy-based data load quickly
- Creating personalized, accurate recommendations for any use case
- Figuring out how to create accurate images efficiently with links to purchase