POKE:CODE is a web application that provides detailed information about Pokémon. The app allows users to search for Pokémon by name or ID and filter by type, color, and gender. Users can also view detailed information about each Pokémon such as color, habitat, egg groups, and more.
- Search Pokémon by name or ID
- Filter Pokémon by type, color, and gender
- View detailed information about each Pokémon
To get started with POKE:CODE, follow these steps:
git clone https://github.com/appasiona/poke-code.git
cd poke-code- Search for Pokémon: Use the search bar to look up Pokémon by name or ID.
- Filter Pokémon: Apply filters to narrow down Pokémon by type, color, and gender.
- View Details: Click on a Pokémon to view detailed information including:
- Number: The unique identifier of the Pokémon.
- Name: The name of the Pokémon.
- Color: The color associated with the Pokémon.
- Capture Rate: The likelihood of capturing the Pokémon.
- Habitat: The natural habitat where the Pokémon is commonly found.
- Egg Groups: The groups that determine the Pokémon’s breeding compatibility.
- Legendary Status: Whether the Pokémon is considered legendary.
- Mythical Status: Whether the Pokémon is considered mythical.
When developing locally, you may encounter CORS (Cross-Origin Resource Sharing) issues if you try to access files using the file:// protocol. To avoid these issues, use a local server to serve your files over http or https. Below are a few options for setting up a local server:
- Download and install XAMPP from Apache Friends.
- Place your project files in the
htdocsdirectory within the XAMPP installation folder. - Start the Apache server from the XAMPP control panel.
- Access your project at
http://localhost/your-project-folder.
- Install the Live Server extension in Visual Studio Code.
- Open your project folder in VS Code.
- Right-click on your
index.htmlfile and select "Open with Live Server." - Your project will be served at
http://127.0.0.1:5500(or another port specified by Live Server).
-
Install the
http-serverpackage globally using npm:npm install -g http-server
-
Navigate to your project directory:
cd /path/to/your/project -
Start the server:
http-server
-
Access your project at http://localhost:8080 (default port).
The application fetches data from the PokéAPI. For more details on available endpoints, visit the PokéAPI Documentation.
Contributions are welcome! To contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
This project is licensed under the MIT License.