Code Monkey home page Code Monkey logo

my_pokedex's Introduction

myPokedex

This project is for a 3SC Web Developer Test.

Quick description:

myPokedex is an app that will allow you to view all the pokemons of the pokemon universe. Opening the app will display a grid of pokemon cards split into multiple pages. A fetch request is sent to the Poke API which will then respond with all the pokemon data. Pagination feature has been implemented for better user experience. The Search input will allow you to search any pokemon in the database. Save or remove pokemon to/from your Favourites just by clicking on the Heart icon on the pokemon card. Saved pokemon will save the ID of each pokemon in the local storage. View your favourite pokemons by clicking on the Favourites button. Activate the "compare mode" which will allow you to start comparing pokemon to one another. Clicking on the Compare button will add extra buttons on the pokemon card which will allow you to selecct pokemon 1 or pokemon 2 for comparing.

View Project

This is an image

Get started:

Fork the project or download the zip folder. With the terminal open the project directory and run the following commands:

Install Dependencies

npm install

Run

npm start

This is an image

Technologies used:

  • React
  • React Hooks
  • useContext/useReducer/useState (State Management)
  • High Order Functions (Map, Filter)
  • Fetch API
  • Async/Await (Asyncronous Programming)
  • CSS Animations
  • CCS Pseudo Elements
  • CSS Variables

Note:   I chose to use React rather than Vanilla JavaScript because of how smooth React applications are and how easy it is to insert HTML elements with JSX instead of the long process of creating elements an appending text and classes to them with plain JS. Also with this project it was important to manage state and keep things syncronized. React does a great job with that with hoooks such as useContext, useReducer and useState.

This is an image

Challenges:

  • The pagination implementation was quite tricky and I had to format the data in a way that it was easier to work with.
  • Fetching all the pokemon id's and fetching once again to get the data for every pokemon id.

What extra features can be added:

  • Clicking on the card will show the details of that specific pokemon. Clicking on it again will revert to showing the name and type.
  • Toast notifications when adding/removing pokemon to/from favourites.
  • Button that can allow users to view only the classic pokemon, the new generation of pokemon or all of them together.

This is an image

Desktop Previews:   This is an image

This is an image

This is an image Mobile Previews: This is an image

This is an image

This is an image   View Project

my_pokedex's People

Contributors

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