Skip to content
SinlessRookPublic

About

A Chess Tournament Hosting site with dynamic player details fetching and leaderboard

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ Mechess

Mechess is a full-stack web application for individuals to host chess tournaments and track player performance. It provides a sleek, user-friendly interface for managing games, viewing leaderboards, and analyzing player statistics.


🌐 Live Demo

Coming soon!


📁 Project Structure

Mechess/
├── client/            # Frontend (Next.js + TypeScript + Tailwind CSS)
│   ├── .env.local     # Contains NEXT_PUBLIC_BACKEND_URL, NEXT_PUBLIC_DEBUG_MODE
│   └── ...
├── server/            # Backend (Django + PostgreSQL)
│   ├── .env           # Contains DEBUG, MODE, DATABASE_URL
│   └── ...
└── README.md

🚀 Features

  • 🏆 Create and manage chess tournaments
  • 📊 Track player statistics and performance
  • 📈 View interactive leaderboards
  • 🔍 Search and filter matches
  • 🌐 Integrates with Chess.com API for profile and game data
  • 🎨 Modern and responsive UI with animations (Tailwind CSS + Framer Motion)

🛠️ Installation

Prerequisites

  • Node.js (v18 or later)
  • Python (v3.10 or later)
  • PostgreSQL

1. Clone the Repository

git clone https://github.com/SinlessRook/Mechess.git
cd Mechess

2. Setup Backend (Django)

cd server
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

# Create a .env file in the server directory with:
# DEBUG=True
# MODE=development
# DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/DBNAME
# ALLOWED_HOSTS=127.0.0.1,localhost

python manage.py migrate
python manage.py runserver

3. Setup Frontend (Next.js + TypeScript)

cd ../client
npm install

# Create a .env.local file in the client directory with:
# NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
# NEXT_PUBLIC_DEBUG_MODE=true

npm run dev

Visit: http://localhost:3000


📂 Environment Variables

client/.env.local

NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_DEBUG_MODE=true

server/.env

DEBUG=True
MODE=development
DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/DBNAME
ALLOWED_HOSTS=127.0.0.1,localhost

♟️ Chess.com API Integration

Mechess integrates with the Chess.com Public API to fetch player data, match history, and profile details. This allows:

  • Viewing player profiles and ratings
  • Analyzing historical performance
  • Displaying user avatars and statistics

No authentication is required for public Chess.com profiles.


🖼️ Screenshots

Leaderboard Screenshot Profile Page Screenshot Loading Screen


🤝 Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-name)
  5. Create a new Pull Request

📄 License

This project is licensed under the MIT License.


Built with ❤️ by SinlessRook

About

A Chess Tournament Hosting site with dynamic player details fetching and leaderboard

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages