Skip to content

Latest commit

 

History

History
109 lines (79 loc) · 1.93 KB

README.md

File metadata and controls

109 lines (79 loc) · 1.93 KB

Pokédex Web App

A lightweight Pokémon browser built with React and Vite. The app fetches real Pokémon data from the public PokeAPI and provides a searchable, navigable Pokédex experience.

Features

  • Browse a paginated list of Pokémon
  • Search for Pokémon by name
  • View Pokémon details including height, weight, and types
  • Navigate between Pokémon using routes
  • Explore similar Pokémon by type
  • Responsive UI with a clean Pokédex-inspired layout

Tech Stack

  • React 19
  • Vite
  • React Router
  • Axios
  • PokeAPI

Project Structure

src/
├── App.jsx
├── components/
│   ├── Pokedex/
│   ├── Pokemon/
│   ├── PokemonDetails/
│   ├── PokemonLIst/
│   └── Search/
├── hooks/
│   ├── useDebounce.js
│   ├── usePokemonDetails.js
│   └── usePokemonList.js
├── routes/
│   └── CustomRoutes.jsx
├── main.jsx
├── index.css
└── App.css

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Install dependencies

npm install

Run the app in development mode

npm run dev

Then open the local URL shown in the terminal, typically:

http://localhost:5173/

Build for production

npm run build

Preview the production build

npm run preview

Scripts

npm run dev     # start Vite dev server
npm run build   # build production bundle
npm run preview # preview production build locally
npm run lint    # run ESLint checks

Data Source

This app uses the public Pokémon API:

Notes

This project is ideal as a learning app for practicing:

  • React component architecture
  • custom hooks
  • API integration with Axios
  • state management with hooks
  • client-side routing

License

This project is for educational/demo purposes.