Skip to content

The project starts from the idea of creating a web page to consult the Pokémon and in this way learn and practice different skills

Notifications You must be signed in to change notification settings

niecogi/pokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokedex

About the project

The project starts from the idea of creating a web page to consult the Pokémon and in this way learn and practice different skills. This project has been developed with the React library and create-react-app.

Features that can be found in this frontend project are the following:

  • APP with two views:
    • a list view to display summary information about the Pokemons
    • a detail view with complete and detailed information about the Pokemons that has been selected.
  • Pagination for displaying large numbers of Pokemons & a scroller component to go to the top of the page
  • List and grid mode
  • Search bar to find the Pokemons.
  • 💥 Not Found page (404) for those routes that do not exist.
  • 🌑 Dark and 🌞Light mode (with CSS variables).
  • 🚀 Deployed in Netlify for easy previewing of the project.

How to run the solution

You can access a deployed version on netlify at the following link pokedex.nieves.codes

or

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

More info

The following sections provide information on the software development process, including problems and solutions, future proposals and information on the pages consulted.

Development process

The process could be summarized in the following points:

  1. Read the proposed requirements.
  2. Create a series of simple mockups of the contents of the webpage.
  3. Start a project with create-react-app & refactor its structure.
  4. Configure the route of the pages, structure the content & create components and containers(pages).
  5. Create the necessary functions and services (calls to the api among others).
  6. Stylize the style of the page (CSS).
  7. Deploy (Netlify) & change domain.

Issues and solutions

  • Issues with data and API fetch.
    • Solution: Read the documentation better and see what it returns.
  • Issues with CORS & very large amount of requests
    • Solution: Apply pagination in the requests
  • Issues with refactor code.
    • Solution: Use custom hooks, usestate, useffect and context.
  • Issues with no-resizable grid.
  • Issues with the deploy in Netlify.
    • Solution: Add in a folder called public a file called _redirects containing the main route
  • Issues with the font style.

Future proposals

  • Add testing.
  • Add some animations in the web page.
  • Upgrade the design of the page, probably try to imitate the old pokemon cards with CSS.
  • Display more information to the user about API requests, why did it go wrong?
  • Centralize pokemons with the context.
  • Try to decouple some components.

Info sources

About

The project starts from the idea of creating a web page to consult the Pokémon and in this way learn and practice different skills

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published