Skip to content

FAC-Sixteen/week3-team-pokedex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

week3-team-pokedex

PROJECT WEEK 3

gif of roomba shark

The Team

Henry @hrmstockdale

Rohan @RohanSSS

Banna @bantek89

Kate @dubhcait

The Project

Our task was to create a single page website that accessed two different api's, and used them to render information on the page utilising the DOM. It's live here

The Api's we decided to use were the pokeApi and a horoscope api.

rough sketch of project structure

We collected inspiration for the website design with the aide of Figma.Our design centred around the pokemon pokedex.

We had to look at a few api's to do the horoscrope, and we ended up having to abandon the one we were originally going to use becuase it wasn't working.


How to set up our project

  1. git clone https://github.com/FAC-Sixteen/week3-team-pokedex.git
  2. cd into the file
  3. npm i to install dependencies
  4. you can run tests with npm test

One of our api's used http while github pages uses https, this means that the browser will automatically block the api. We have prevented this from being an issue through the use of CORS


What did we struggle with?

slap

-problems with respect to scope re eventListener function - JSON object only "existed" in the GET request - so we concluded that we needed to do all our DOM functionality within the scope of said request

meme about require


What did we learn?

detective pikachu

  • Query Selector is superior most of the time
    • but, re elems we created we ended up needed a live node list.
  • callbacks within callbacks
  • testing with api's is not a thing
  • callbacks, writing functions with callbacks
  • getting better at writing more modular code + writing handler functions

Stretch goals

  • allowing the user to enter their date of birth
  • allowing users to select the generation of the pokemon they are given
  • showing both type and subtype of the pokemon
  • assigning multiple types to certain star signs so that all pokemon types can be gotten ✔️

public/img/Preview

public/img/Preview


all done

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •