Giter Site home page Giter Site logo

pokedex's Introduction

Pokedex

node version

Introduction

Pokedex helps Pokemon trainers to look up detailed information on each Pokemon, including species name, type, and image.

Top-level Directory Layout

.
|-- public              # Assets
    |-- images          # Images
    |-- index.html      # entry point for browser
|-- src
    |-- components      # All components, containers, and stories used in this project.
    |-- data            # Json data for all pokemons info
    |-- styles          # CSS files for styling components
    |-- tests           # Test files
    |-- App.js          # Root component
    |-- index.js        # Index file for React component rendering
    |-- utilities.js    # Utilities

Installation

To install the Pokedex application, follow these steps:

  1. Clone the repository to the local machine.
  2. Navigate to the project directory in the terminal.
  3. Run npm install to install the dependencies.
  4. Run npm start to start the development server.

Usage

Once the application is running, you can access it by navigating to http://localhost:3000 in the web browser.

The web page will display a grid of all Pokemons with pagination. Trainers can also,

  1. Filter pokemons by their name
  2. Filter pokemons by their types

Screenshot

alt text

Tests

Run npm test

Test Results

alt text

Notes: node version may cause error while running the test suites, in order to run tests, you can update your node version up to v19.8.1

Storybook

Run npm run storybook, you can access it by navigating to http://localhost:6006 in the web browser

Notes: If you got the digital envelope routines::unsupported error. You can run below command in the terminal to resolve this problem.

export NODE_OPTIONS=--openssl-legacy-provider

pokedex's People

Contributors

jimmywang54 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.