Giter VIP home page Giter VIP logo

ebodshojaei / pokebodex Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 141 KB

A single-page web application that fetches and displays information about Pokemon from the PokéApi using JavaScript, Axios, and jQuery. Bundled using WebPack

Home Page: https://pokebodex.netlify.app/

JavaScript 100.00%
axios ejs ejs-template-engine ejs-templates ejs-templating html html-css html-css-javascript html5 javascript

pokebodex's Introduction

Pokédex App

About

This is a single-page web application that fetches and displays information about Pokemon from the PokeAPI. It allows users to browse and filter through a list of Pokemon based on their types. The project has been bundled using WebPack.

Hosted (Link)
Video (Link)

 Author: Ebod Shojaei
 Version: 1.0

Features

  • Fetching Pokemon:
    • The app fetches a list of Pokemon objects from the PokeAPI, containing the names and URLs of the Pokemon.
  • Fetching Pokemon Types:
    • The app fetches a list of Pokemon types from the PokeAPI, containing the names and URLs of the types.
  • Caching Pokemon Data:
    • The app caches the response data for each Pokemon to reduce the number of API requests.
  • Pagination:
    • The app displays the Pokemon cards in a paginated manner, with a fixed number of cards per page (default is 10).
    • Users can navigate between pages to view different sets of Pokemon.
  • Filtering by Type:
    • The app provides checkboxes for each Pokemon type.
    • Users can select one or multiple types to filter the displayed Pokemon.
    • The app dynamically updates the displayed Pokemon based on the selected types.
  • Pokemon Details Modal:
    • The app shows a modal with detailed information about each Pokemon.
    • Clicking the "Details" button on a Pokemon card opens the modal, displaying the Pokemon's ID, image, abilities, stats, and types.
  • Responsive Design:
    • The app is designed to be responsive and work well on different devices and screen sizes.

Requirements

  • The app requires the following dependencies:

    • axios: A promise-based HTTP client for making API requests.
    • jquery: A JavaScript library for DOM manipulation and event handling.
    • bootstrap: A popular CSS framework for styling the app.
    • popper.js: A library required by Bootstrap for handling dropdowns, tooltips, and popovers.
  • The app also uses custom CSS and HTML files for styling and structure.


Usage

To use the app on your local machine, follow these steps:

  • Clone the repository to your local machine.
  • Open the index.html file with a live server.
    • The app will automatically fetch the Pokemon data from the PokeAPI and display the Pokemon cards.
  • Use the checkboxes to filter the Pokemon by type.
  • Use the pagination buttons to navigate between different pages of Pokemon.
  • Click the "Details" button on a Pokemon card to view its detailed information in a modal.

Note: Internet access is required to fetch data from the PokeAPI.


Enjoy exploring the world of Pokemon!


Resources



pokebodex's People

Contributors

ebodshojaei avatar

Stargazers

 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.