Giter Club home page Giter Club logo

tapi_frontendtest's Introduction

Vue Pokedex

Your mission is to complete this Pokedex app, using Vue and your frontend knowledge. When you have reached the end of the test you should have something like this:

Vue Pokedex

Instructions

  1. Implement the getPokemon and getRandomPokemon functions in src/api/index.js to consume the PokeAPI. You can use axios or fetch to communicate with the API, whichever you prefer.

  2. Finish the PokemonCard component by adding the official artwork sprite image and appropriate base stats to the table in the cells marked "INSERT STAT". You can refer to the PokeAPI Pokemon endpoint documentation for the data structure, for example you can access the HP base stat like so pokemon.stats[0].base_stat.

  3. When the app is first mounted, we want to show a random Pokemon using the getRandomPokemon function and the PokemonCard component. While fetching data, you should show a loading spinner using the Loader component.

  4. Add the ability to search for a Pokemon by name or a National Pokedex number using the SearchField component and the getPokemon function. You should debounce the search to reduce the number of API requests while typing in the field by using the debounce function from lodash-es. Note: The API expects names to be lowercase, so you should transform the value before sending the request.

  5. Bonus: Implement the steps above using the new Composition API instead of the Options API.

tapi_frontendtest's People

Contributors

martinhipp avatar elliotrichard 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.