A simple JavaScript application that fetches and displays Pokémon data using the PokéAPI.
This project demonstrates the use of Fetch API, async/await, and DOM manipulation in JavaScript.
- Fetches Pokémon data (name, image, type, and abilities) from the PokéAPI.
- Displays Pokémon details dynamically on the webpage.
- Handles invalid Pokémon names gracefully with error messages.
- Clean and minimal UI built with HTML, CSS, and JavaScript.
- Fetch API for HTTP requests
- Async/Await for asynchronous operations
- JavaScript DOM Manipulation
- Error Handling
- Basic HTML/CSS Layout
| Technology | Description |
|---|---|
| HTML5 | Structure and layout |
| CSS3 | Styling and design |
| JavaScript (ES6+) | Logic, Fetch API, and interactivity |
| PokéAPI | Free Pokémon RESTful API |
- Clone this repository
git clone https://github.com/1stAlphaDemon/pokemon.git
- Navigate into the project directory
cd pokemon - Open the project
Simply openindex.htmlin your browser — no server setup needed.
- Enter the name of a Pokémon (e.g.,
pikachu,25) in the input box. - Click the Search button.
- Cliack the Clear button to clear any filter and reload.
- Click any type to filter accordingly.
- Change sort to sort accordigly.
- Click any single card to see more details.
- The app will display Pokémon details such as:
- Name
- Image
- Type(s)
- Abilities
fetch("https://pokeapi.co/api/v2/pokemon/pikachu")
.then(response => response.json())
.then(data => console.log(data));- Add search suggestions or autocomplete.
- Show Pokémon stats and evolution chain.
- Use a modern UI framework (React, Vue, or Svelte).
- Cache fetched data with localStorage.
- PokéAPI: https://pokeapi.co/
- Developed by 1stAlphaDemon