DogPedia is a React + Vite web app that lists dog breeds, supports search, and allows side-by-side comparisons. Data is loaded from The Dog API.
- Browse dog breeds with images and key stats
- Search by name or breed group
- Compare up to 3 breeds side-by-side
- Modal details for each breed
- Node.js 18+ (recommended)
- A Dog API key from https://thedogapi.com
- Install dependencies:
npm install - Create or update
.env.localwith your API key:VITE_DOG_API_KEY=YOUR_API_KEY - Start the dev server:
npm run dev
npm run dev- Start local dev servernpm run build- Build for productionnpm run preview- Preview the production build
- If you see a 401 error, verify your API key in
.env.local.