Skip to content

MageSneaky/pokemon-wordle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Wordle

Pokémon Wordle Website

Table of Contents
  1. About
  2. Demo
  3. Self-Host
  4. Roadmap
  5. Contributing
  6. Technologies Used
  7. Acknowledgments

About

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.

Demo

Live Demo

Self-Host

Prerequisites

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.

Installation

  1. Clone the repository:
git clone https://github.com/MageSneaky/pokemon-wordle.git
  1. Configuration
  • Rename .env.example to .env.
  • Rename config.sample.php to config.php.
  1. 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).
  1. 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.
  1. Set up backend server:
  • Navigate to the backend folder and run node . to start the backend server and populate necessary database entries.
  1. Set up local server:
  • Place the web folder inside your server's root directory.
  • Start your server.
  1. Run the Game:
  • Access the game at http://localhost (or the corresponding URL based on your server setup).

Roadmap

  • Minor features/fixes
    • Tab auto-complete
    • Support for Japanese Pokémon names
  • Replay system
  • User profile page
  • "How to play" guide
  • Weekly challenges/Events

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/new-feature.
  3. Commit your changes: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature/new-feature.
  5. Open a pull request. For simpler issues or suggestions, create an issue here.

Technologies Used

  • 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

Acknowledgments

  • Thanks to PokeAPI for providing Pokémon data.
  • Discord OAuth for OAuth setup examples.
  • Inspired by the original Wordle game concept.