Table of Contents
Welcome to Pokémon Wordle, a web-based word-guessing game where players try to guess the name of a Pokémon. Inspired by the popular Wordle game, this version adds a fun Pokémon twist. Pokémon Wordle is built with HTML, CSS, JavaScript, jQuery, and PHP.
To run Pokémon Wordle locally, you will need:
- A local server setup (e.g., XAMPP, MAMP, nginx, or WAMP) to support PHP.
- MySQL server
- Basic knowledge of HTML, CSS, JavaScript, Node.js, and PHP.
- Clone the repository:
git clone https://github.com/MageSneaky/pokemon-wordle.git
- Configuration
- Rename
.env.example
to.env
. - Rename
config.sample.php
toconfig.php
.
- Create Discord Application
- Go to Discord's Developer Portal to create a new Application (or use an existing one).
- Copy client ID and client secret into
config.php
. - Set up a redirect URI to
http://locahost/login
(or adjust based on your server setup).
- Database setup:
- Import
database.sql
from the project folder into your MySQL database. - Update the database credentials in
config.php
and.env
to match your database setup.
- Set up backend server:
- Navigate to the
backend
folder and runnode .
to start the backend server and populate necessary database entries.
- Set up local server:
- Place the
web
folder inside your server's root directory. - Start your server.
- Run the Game:
- Access the game at
http://localhost
(or the corresponding URL based on your server setup).
- Minor features/fixes
- Tab auto-complete
- Support for Japanese Pokémon names
- Replay system
- User profile page
- "How to play" guide
- Weekly challenges/Events
Contributions are welcome! Please follow these steps:
- Fork the project.
- Create your feature branch: git checkout -b feature/new-feature.
- Commit your changes: git commit -m 'Add new feature'.
- Push to the branch: git push origin feature/new-feature.
- Open a pull request. For simpler issues or suggestions, create an issue here.
- Frontend: HTML, CSS, JavaScript, jQuery
- Backend: PHP, MySQL, Node.js (for managing Pokémon data, users, and leaderboards)
- Other: AJAX for asynchronous data fetching, nginx as the web server
- Font: Montserrat
- Thanks to PokeAPI for providing Pokémon data.
- Discord OAuth for OAuth setup examples.
- Inspired by the original Wordle game concept.