This is the backend repository for Chess Master, a full-featured chess web application.
It powers the game logic, user authentication, matchmaking, and API services.
🔗 https://your-backend-api.render.com
This repository contains only the backend code.
For the frontend UI, visit: Chess Master Frontend.
- 🔐 User Authentication (Signup/Login with JWT)
 - 🔄 Real-Time Multiplayer (WebSockets for global chess matches)
 - 🏆 Game History & Stats Tracking
 - 🧩 Daily Chess Puzzles API
 - 🔍 Matchmaking System
 - 📜 Move Validation & Chess Engine Support
 - 📊 Leaderboards & Player Ratings
 
- Backend Framework: Node.js + Express.js
 - Database: MongoDB + Mongoose
 - Real-Time Multiplayer: Socket.io
 - Chess Logic: chess.js + Stockfish AI
 - Authentication: JWT (JSON Web Tokens)
 - API Testing: Postman
 
- Clone the repository
git clone https://github.com/yourusername/chess-master-backend.git cd chess-master-backend - Install Dependencies
npm install
 - Configure environment
PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key FRONTEND_URL=https://your-frontend-deployed-link.vercel.app
 - Start the server
npm start
 - Your API will be live at http://localhost:5000.
 
Contributions are welcome! Please follow these steps:
- Fork the project.
 - Create your feature branch:
git checkout -b feature/AmazingFeature
 - Commit your changes:
git commit -m 'Add some AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature
 - Open a Pull Request.
 
Distributed under the MIT License. See LICENSE for details.