Skip to content

Responsive web application in HTML, CSS, JavaScript and a bit of Bootstrap and jQuery, that fetches data from an external PokéAPI, displaying Pokémon names as a list and Pokémon details as a modal

Notifications You must be signed in to change notification settings

EllyPirelly/cf-pokedex-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Checker

What is this about?

This Pokémon Checker has been built as a task for Achievement 1 in Career Foundry's Full-Stack Web Development Program.
It is a small, responsive web application that fetches data from the external PokéAPI.
Pokémon names are displayed as a list.
Pokémon details are displayed via Modal.

Screenshot of the Pokemon List Screenshot of the Pokemon Modal

Click here to see the website on GitHub pages

Project requirements

  • mobile first (starting at 320px), responsive
  • HTML, CSS and JavaScript from scratch
  • Bootstrap (CSS, JS), Bootstrap's Navbar Component, Bootstrap's Modal Component
  • fetch Pokémon names and Pokémon detailed URLs of a list of Pokémons
  • fetch Pokémon Details via detailed URL, example "bulbasaur"
  • create and style a home page that displays fetched Pokémon names as a list li within a static ul
    • do not display (at time of writing) all 1279 available Pokémon names, but limit that request
    • in that list, dynamically create mandatory li and button elements for each item
    • click on button needs to open a Modal
  • create and style a Modal, that displays fetched Pokémon Details
    • for this, use Bootstrap's Modal Component
    • Pokémon Details mandatory to display are: image, name, height, types
    • all needed HTML elements must be created dynamically
  • use Polyfills for fetch and promises (browser support)
  • properly format and lint all files with Prettier and ESLint
  • properly PostCSS, autoprefix and minify all files (manually, no build workflow)

Detour to formatting and linting

As I am working with Visual Studio Code, I do not need Prettier.
Visual Studio Code brings code formatting for HTML, CSS/SCSS and JavaScript out of the box.
This is the reason why I deleted Prettier, ESLint and configs off of this project, after passing the final task.
To achieve a common code formatting in colaborations, I've introduced an .editorconfig with a most global configuration.

Languages, Libraries, Frameworks

  • HTML
  • CSS
  • JavaScript
  • Bootstrap (CSS and JS; jQuery)
  • Polyfill for promises
  • Polyfill for fetch

Sources

Tools, Extensions

How to run this?

No build workflow.

  • clone the repo
  • cd into project
  • if on Visual Studio Code, install "Live Server" extension, go to bottom menu and click "Go Live":
    Visual Studio Code Screenhot Go Live
  • this is going to open the Pokémon Checker on localhost http://127.0.0.1:5500/

Possible future TODO

  • Pagination
  • Loading Spinner
  • Search
  • ...

About

Responsive web application in HTML, CSS, JavaScript and a bit of Bootstrap and jQuery, that fetches data from an external PokéAPI, displaying Pokémon names as a list and Pokémon details as a modal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published