Skip to content

A robust backend for Chess Master, handling multiplayer matches, AI challenges, puzzles, user authentication, and game history. Secure, scalable, and optimized for performance.

License

Notifications You must be signed in to change notification settings

itxnargis/chess-backend

Repository files navigation

♟️ Chess Master (Backend)

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.

🌐 API Base URL

🔗 https://your-backend-api.render.com

📢 Important!

This repository contains only the backend code.
For the frontend UI, visit: Chess Master Frontend.


📜 Table of Contents


✨ Features

  • 🔐 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

🛠 Technologies Used

  • 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

🚀 Setup & Installation

  1. Clone the repository
    git clone https://github.com/yourusername/chess-master-backend.git
    cd chess-master-backend
    
  2. Install Dependencies
    npm install
    
  3. Configure environment
    PORT=5000
    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=your_secret_key
    FRONTEND_URL=https://your-frontend-deployed-link.vercel.app
    
  4. Start the server
    npm start
    
  5. Your API will be live at http://localhost:5000.

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the project.
  2. Create your feature branch:
    git checkout -b feature/AmazingFeature
  3. Commit your changes:
    git commit -m 'Add some AmazingFeature'
  4. Push to the branch:
    git push origin feature/AmazingFeature
  5. Open a Pull Request.

📄 License

📄 License

Distributed under the MIT License. See LICENSE for details.

About

A robust backend for Chess Master, handling multiplayer matches, AI challenges, puzzles, user authentication, and game history. Secure, scalable, and optimized for performance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published