Skip to content

utkarshagar2121/GridGambit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β™ŸοΈ GridGambit

GridGambit is a full-stack real-time multiplayer chess platform built with React, Node.js, TypeScript, WebSockets, Redis, and PostgreSQL. It enables users to sign up, play live matches, and maintain chess ratings using an ELO system β€” all in a clean, responsive interface.


πŸš€ Features

  • β™ŸοΈ Create or join live matches instantly
  • πŸ”„ Real-time gameplay using WebSocket communication
  • 🧠 Chess rules enforced (move validation, turn-based play)
  • 🏁 PostgreSQL backend for persistent user and game data

πŸ›  Tech Stack

Layer Technology
Frontend React, TypeScript, Tailwind CSS
Backend Node.js, Express, TypeScript
Real-Time WebSocket Server (Socket.io)
Database PostgreSQL

🧩 Monorepo Structure

chess-platform/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ frontend      # React frontend
β”‚   β”œβ”€β”€ backend       # Express + PostgreSQL backend
β”‚   └── ws            # WebSocket server for real-time gameplay
└── README.md

πŸ“¦ Local Setup

1. Clone the Repository

git clone https://github.com/your-username/checkmatelive.git
cd checkmatelive

2. Set up Environment Variables

Copy the .env.example files in each app folder:

cp apps/frontend/.env.example apps/frontend/.env
cp apps/backend/.env.example apps/backend/.env
cp apps/ws/.env.example apps/ws/.env

Update the variables with:

  • PostgreSQL credentials
  • Google/GitHub OAuth credentials
  • Redis connection string

3. Install Dependencies

npm install

4. Start All Servers

# Start WebSocket server
cd apps/ws
npm run dev

# Start Backend server
cd ../backend
npm run dev

# Start Frontend
cd ../frontend
npm run dev

🧠 Future Enhancements

  • Spectator mode
  • Match history (FEN/PGN)
  • Leaderboard and profile pages
  • AI opponent using Stockfish
  • Draw detection and timer support

πŸ§‘β€πŸ’» Contributing

Pull requests are welcome! For major changes, open an issue first to discuss what you would like to change.


πŸ“ License

MIT License. See LICENSE file for details.


πŸ™Œ Acknowledgements

Inspired by chess.com and built for learning, fun, and open collaboration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published