Skip to content

ironhack-dev-squad-108/lab-react-and-pokeapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 

Repository files navigation

logo_ironhack_blue 7

PokeReact

Hello there! Welcome to the world of Pokémon. This world is inhabited by creatures called Pokemon!

Your goal as a PokéDeveloper is to create a website that list all of them. You will find below few of them.

For this lab, you will rely on:

  • create-react-app to create your own React application
  • react-router-dom to have a website with different pages
  • https://pokeapi.co to fetch informations about Pokemons
  • axios to call apis

If you want to take some inspiration for the wesite, you can check https://pokedex.org

Iteration 1 | Start the project

Create a new React application (for example with create-react-app) with 6 components:

  • src/components/App.js
  • src/components/Navbar.js
  • src/components/pages/Home.js
  • src/components/pages/PokemonsList.js
  • src/components/pages/PokemonDetail.js
  • src/components/pages/CreateYourTeam.js

For the moment, write only the content of:

  • App.: Put your Navbar and your <Route>
  • Navbar: Put your <NavLink>s
  • Home: Write a simple welcoming home page 😀

Iteration 2 | PokemonsList

Now it's time to create a page '/pokemons' with the component PokemonsList.

Your goal is to display the list of all pokemons, with their names and pictures. For this, you will need to 1 API call to GET https://pokeapi.co/api/v2/pokemon/. To get the pictures, if the id of the pokemon is 25, you can display the picture with the following link: "https://pokemon-fight.surge.sh/images/pokemons/25.png"

Iteration 3 | PokemonsList with search

Add a search bar to filter pokemons by name.

Iteration 4 | PokemonDetail

Now, you want to display the detail of Pokemon. Your goal is to display the list of pokemons on the left and the details on the right.

You will probably have to use componentDidUpdate!

Iteration 5 | CreateYourTeam

Ask Maxence ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published