The Pokémon Battle Advisor is a web application designed to help Pokémon trainers strategize their battles by providing detailed and realistic battle recommendations. Users can specify their Pokémon team or randomize a team, and then receive tailored battle strategies based on their team and the opponent's Pokémon. The application leverages the CEREBRAS API to generate these recommendations, ensuring they adhere to official Pokémon game mechanics.
Fork the Repository:
Set Up Environment Variables: Create a .env file in the root directory and add your Cerebras API key:
CEREBRAS_API_KEY=your_cerebras_api_key
Note: Ensure that your Cerebras API key is kept secure and not exposed publicly.
Run the Application: Execute the following command to start the server:
deno run --allow-net --allow-env cerebras_try.ts
--allow-net: Grants network access needed for API calls.--allow-env: Grants access to environment variables for the API key.Access the Application: Open your browser and navigate to http://localhost:8000 to view the Pokémon Battle Advisor.
cerebras_try.ts: The main TypeScript file that serves both the server and client-side code.
/api/cerebras-key) to securely retrieve the Cerebras API key.Contributions are welcome! Please follow these steps to contribute:
Relevant when I move it to github.
Fork the Repository: Click the "Fork" button at the top right of the repository page to create a copy of the repository under your GitHub account.
Clone Your Fork:
git clone https://github.com/yourusername/pokemon-battle-advisor.git cd pokemon-battle-advisor
Create a New Branch:
git checkout -b feature/your-feature-name
Make Your Changes: Implement your feature or bug fix.
Commit Your Changes:
git commit -m "Add your commit message here"
Push to Your Fork:
git push origin feature/your-feature-name
Submit a Pull Request: Go to the original repository on GitHub and create a pull request from your forked repository.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please contact cusp-aloft-brim@duck.com