This project provides an API to search for Pokémon and check if Ash Ketchum has battled them in the Pokémon series. The project uses Express.js, the PokéAPI, and OpenAI's ChatGPT for fetching Pokémon data and answering user queries.
Checkout the live session here: Checkout the live session here
- Fetches data from the PokéAPI.
- Checks if a Pokémon is part of the Hisui or Gen 9 region.
- Uses OpenAI's ChatGPT to answer if Ash has battled the specified Pokémon.
- Autocompletes Pokémon names for search suggestions.
- Provides details to Ash Battle History
- Site is resizable to adjust to different forms of media
- Node.js and npm installed.
- An OpenAI API key.
- Clone the repository:
git clone https://github.com/yourusername/pokemon-search-api.git
- Install the dependencies:
npm install
- Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your-openai-api-key
Start the server:
npm start
Create a .env file in the root directory with the following content:
OPENAI_API_KEY=your-openai-api-key
Contributions are welcome! Please fork the repository and create a pull request with your changes.
License This project is licensed under the MIT License.