ChessMate is a sophisticated chess analysis platform that combines the power of the Stockfish engine with modern web technologies to provide detailed game analysis and personalized feedback.
- Features
- Prerequisites
- Installation
- Usage
- Testing
- API Documentation
- Contributing
- License
- Acknowledgments
- Game Analysis: Detailed analysis of chess games using Stockfish engine
- Personalized Feedback: AI-powered feedback on your games
- Credit System: Flexible credit packages for game analysis
- Multi-Platform Support: Import games from Chess.com and Lichess
- Modern UI: Responsive design with real-time updates
- Secure Authentication: JWT-based authentication system
- Python 3.8+
- Node.js 14+
- Redis Server
- Stockfish Chess Engine
- PostgreSQL (optional, SQLite by default)
-
Clone the repository:
git clone https://github.com/ahmed5145/chessmate.git cd chessmate -
Install dependencies:
-
Backend:
cd chessmate python -m venv venv source venv/bin/activate # or `venv\Scripts\activate` on Windows pip install -r requirements.txt
-
Frontend:
cd frontend npm install
-
-
Set up environment variables:
cp .env.example .env # Edit .env with your configuration: # - Set up email credentials # - Add OpenAI API key # - Configure Stripe keys # - Set Stockfish path
-
Initialize the database:
python manage.py makemigrations python manage.py migrate
-
Start Redis Server:
redis-server
-
Start Celery Worker:
celery -A chess_mate worker -l info
-
Run development servers:
-
Backend:
cd chess_mate python manage.py runserver -
Frontend:
cd frontend npm start
-
- Create an account or sign in using your email and password
- Purchase analysis credits from available packages
- Import games from Chess.com or Lichess
- Select games for analysis
- View detailed analysis including:
- Move accuracy
- Critical moments
- Improvement suggestions
- Opening recommendations
- Time management feedback
-
Backend Tests:
cd chess_mate python -m pytest -
Frontend Tests:
cd frontend npm test
See API Documentation for detailed endpoint information.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Stockfish Chess Engine
- OpenAI API
- Chess.com API
- Lichess API
Document last updated on January 18, 2024
Copyright ยฉ 2024 ChessMate. All rights reserved.