Giter Club home page Giter Club logo

pokedox's Introduction

Pokemon React App

This React application retrieves a list of Pokemon from the PokeAPI and stores the list persistently using TypeScript, Redux Toolkit, and RTK Query. Upon clicking an item in the list, the application displays the details of the corresponding Pokemon.

Features

  • Retrieves a list of Pokemon from the PokeAPI
  • Stores the list persistently using Redux Toolkit and RTK Query
  • Displays details of the selected Pokemon when clicked
  • Written in TypeScript for type safety
  • Unit tests for both screens ensure reliability and correctness

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/mbilalsiddique1/pokedox.git
  1. Navigate to the project directory:
cd pokedox
  1. Install dependencies:
npm install

Configuration

The application start script can be configured to use different BASE API URLs. You can set the BASE API URLs by modifying environment variables in a .env file:

REACT_APP_BASE_API_URL=https://pokeapi.co/api/v2/

Running the Application

To run the application, use the following command:

npm start

This will start the development server, and the application will be accessible at http://localhost:3000.

Testing

To run unit tests, use the following command:

npm test

This will run all unit tests and display the coverage report. The application aims to achieve at least 60% coverage of unit and integration testing to ensure reliability and correctness.

API Endpoints


This README provides detailed instructions on how to run the application, configure environment variables.

pokedox's People

Contributors

mbilalsiddique1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.