Giter Club home page Giter Club logo

quickpokedex's Introduction

Eliga Services Pokémon full-stack challenge

All 5 steps have been completed.

Extra features

  1. You can GET the total amount of pokemon in existence by setting the query parameter total in the API get request. In the app the total query param has been set too 200 as an example. There are 905 pokemon in existence.

Considerations

  1. Descriptive API error handling has already been set up and can be displayed in the app via a toast.
  2. Add Pokemon moves and display them in a modal.

Step 1

  • In /pages/api.js create a middleware function to receive the first 151 Pokémon from https://pokeapi.co/.

  • The API returns a little too much data for each Pokémon than we'd like. We're only interested in the 'name', 'id', 'stats' and 'types' fields. Modify your middleware function to remove all other fields on each Pokémon and serve the reduced data to your application.

Step 2

  • Create a front-end to display all Pokémon on the webpage using the reduced data from your API function. You are free to use any layout you like.

  • You'll notice that the API doesn't return an image for each Pokémon. Make sure you use the relevant image for each Pokémon from the /public/sprites directory.

Step 3

Add some interactivity. Clicking on a Pokémon should show all the data for the selected Pokémon. You can display this however you like (modal, tab, etc).

Step 4

Incorporate a search function to the application so someone can find a Pokémon quickly by typing its name into a search box.

Step 5

Extend the search functionality with filters/sorting:

  • Users should be able to filter by type(s), ie fire, water, grass etc.

  • Users should be able to sort Pokémon by stats such as attack, defense etc.

QuickPokeDex

quickpokedex's People

Contributors

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