This project implements sorting, searching, and pagination and shows pokemon details. The main objective is to allow users to:
- Fetch and display a list of pokemon with pagination
- Sort the Pokemon data alphabetically (A-Z, Z-A).
- Search Pokemon by name.
- Paginate results, showing 20 Pokemon per page, and navigate through them.
- Language & Library: Next.js
- State Management: Redux Toolkit
- Styling: Tailwind CSS
- API calls: Axios
- Data fetching and caching: React Query
All Pokemon data is initially fetched without pagination constraints, allowing for flexible sorting across the entire dataset.
Sorting is performed on the full dataset (after fetching all records), rather than just the current page of results
Users can choose from the following sorting options:
- Default: No sorting applied.
- A-Z: Sort ascending order.
- Z-A: Sort descending order.
Search bar allows users to filter Pokemon by name
Once the sorting and searching logic is applied, the dataset is paginated, showing 20 Pokemon per page
User can show details of every pokemon, Include pokemon name, image, type(s), abilities, and stats (HP, Attack, Defense, Special-attack, Special-defense, Speed).
git clone https://github.com/devdignesh/Pok-mon-explorer-app.gitWe are using pnpm for package management. If you haven't installed pnpm yet, you can install it globally by running:
npm install -g pnpmOnce you have pnpm installed, run:
pnpm installTo start the development server, run:
pnpm dev