Skip to content

llcoollasa/pokemonapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Pokémon API

pokemon

Prerequisites

I have used Node version 17.8.0

Available Scripts

npm start

Open http://localhost:3000 to view it in the browser.

npm test

Run the tests

Configurations

Config Name Value
POKEMON_URL Pokemon API URL
POKEMON_LOGO App Logo
PAGINATION_TOTAL_LINKS_TO_DISPLAY This will display the number of pagination links on app
PAGINATION_LIMIT_RECORDS_PER_PAGE How many records per page

Improvements/Time constraints

  • Detail Page UI/UX can be improve. Since there are more details available in current API call pokemon detail page can be organized with using pokemon other APIs such as ability, characteristic, gender etc.
  • Pagination can be improved with adding first/last/prev/next/go-to-lage links. Also as mentioned application can have endless scrolling.
  • Pagination uses state to display the result at the moment. In future it can be improved to go to specific page from the URL address
  • Application wise general error handling can be use. Error component can be used in poperly through the app.
  • Intitial page could be combined with pokemon images and basic info
  • Enable query caching for app performance. Such as https://react-query.tanstack.com/guides/caching
  • Pokemon Search needs improvements such as error handling, maybe real time autocomplete.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors