Skip to content

stewarteaton/what2wear

Repository files navigation

What2Wear

🌐 Live Site: https://what2wear.io

A smart outfit recommendation app that suggests what to wear based on current weather conditions.

Prerequisites

  • Node.js (version 18 or higher)
  • pnpm package manager

Setup

  1. Clone or download the repository

    git clone <repository-url>
    cd what2wear
  2. Install dependencies

    pnpm install
  3. Set up environment variables

    Create a .env.local file in the root directory and add:

    OPENAI_API_KEY=your_openai_api_key_here
    OPENWEATHER_API_KEY=your_openweather_api_key_here
    

    You'll need to:

Running the App

  1. Start the development server

    pnpm dev
  2. Open your browser

    Navigate to http://localhost:3000

Building for Production

pnpm build
pnpm start

What it does

The app analyzes weather conditions and provides personalized outfit recommendations using AI to help you dress appropriately for the day.

Trade Offs

  • 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

Challenges

  • 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

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published