A pet adoption site written in React. Search for pets waiting to be adopted. Get detailed information on them before you make your choice. All pets are coming from the Petfinder API. Technologies used: Vite, React, Redux, Tailwind CSS, TypeScript, React Testing Library, Vitest.
The code in this project is based on The Complete Intro to React and Intermediate React courses by Brian Holt from Frontend Masters.
- ✓ Navbar, Footer: Done
- ✓ Light/Dark Mode with React Context: Done
- ✓ Pagination: Done
- ✓ Migration to Tailwind CSS: Done
- ✓ Migration to TypeScript: Done
- ✓ Migrating some of the state management to Redux/RTK: Done
- X Migration to the Petfinder API: Not Complete
- ✓ Test components with Vitest and React Testing Library: Partially done
npm run dev: start local dev server with Vite.npm run build:tsc --noEmitwill typecheck the project, and then build it to thedistfolder with Vite.npm run preview: preview the built project on a local dev server with Vite.npm run format: format all files according to the Prettier config.npm run lint: lint all files using ESLint with a different parser for.js/.jsxand.ts/.tsxfiles.npm run typecheck: typecheck the project withtsc --noEmit.
npm testwill run all test suites once insrc/__tests__. The command callsvitest --rununder the hood.npm run test:watchwill run all test suites in watch mode.npm run coveragewill show a detailed test coverage report of what is and what is not tested in the project.