This project is a React application built with TypeScript, Redux Toolkit, and RTK Query to retrieve and display information about Pokemon.
- Fetches a list of Pokemon from the PokéAPI.
- Stores the retrieved Pokemon list persistently.
- Displays a list of Pokemon names.
- Allows clicking on a Pokemon name to display its details.
- React
- TypeScript
- Redux Toolkit
- RTK Query
- Code Separation: Components, logic, and styling are kept separate for better organization and maintainability.
- Clean Code: The code adheres to principles like readability, meaningful variable names, and proper formatting.
- Readability: The code is easy to understand for both developers working on the project.
- Maintainability: The code is well-structured and documented to facilitate future modifications and bug fixes.
- GET https://pokeapi.co/api/v2/pokemon/ : Retrieves a list of Pokemon.
- GET [invalid URL removed] : Retrieves details of a specific Pokemon by its ID. (Replace
:id
with the actual Pokemon ID)
Note: This README doesn't include specific code examples, but provides an overview of the project's functionalities and development principles.
- Clone the repository.
- Install dependencies:
npm install
- Start the development server:
npm start
- The application should run on
http://localhost:5173/
(default port).
Unit tests are written for both the Pokemon list and detail screens using a suitable testing framework like Jest. These tests ensure that the components behave as expected under different scenarios.
This README provides a high-level overview of the project. Further details about the implementation and testing can be found within the codebase itself.