Skip to content

Hoi-Tong/PawFit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐢🐱 PawFit

React Vite License: MIT

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.


πŸš€ Features

  • 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

πŸ› οΈ Tech Stack

  • 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

πŸ’Ύ Setup Instructions

  1. Clone the repository
git clone https://github.com/your-username/pet-outfit-generator.git
cd pet-outfit-generator
  1. Install dependencies
npm install
  1. Create a .env file in the root folder
VITE_UNSPLASH_KEY=YOUR_UNSPLASH_ACCESS_KEY

⚠️ Make sure the variable starts with VITE_.

  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors