A fun and interactive web app built with React + Vite that generates random outfits for pets.
Users can choose between a Dog or Cat, and the app displays a random combination of shirt, pants, and shoes for the pet.
- Choose between Dog or Cat
- Randomized pet outfits every time
- Uses live images from APIs for pets and clothing
- Responsive and simple design
- Quick and fun way to see pets in cute outfits
- React (Functional Components)
- Vite for fast development and hot reload
- Unsplash API for clothing images
- Dog CEO API and The Cat API for pet images
- CSS for styling
- Clone the repository
git clone https://github.com/your-username/pet-outfit-generator.git
cd pet-outfit-generator
- Install dependencies
npm install
- Create a .env file in the root folder
VITE_UNSPLASH_KEY=YOUR_UNSPLASH_ACCESS_KEY
VITE_.
- Start the development server
npm run dev
Open the URL printed in your terminal (usually http://localhost:5173) to see the app.
π Project Structure
my-react-app/
β
βββ public/
β βββ vite.svg
βββ src/
β βββ assets/
β βββ App.css
β βββ App.jsx
β βββ main.jsx
βββ .env # Contains Unsplash API key
βββ package.json
βββ README.md
π§ Possible Enhancements
- Add more outfit categories (hats, scarves, accessories)
- Save favorite outfits
- Use multiple APIs for more variety
- Layer outfits visually on the pet image for a realistic look