A real-time full-stack< chess game built using the MERN stack with live gameplay updates via WebSockets.
Players can compete online, spectate matches, and even share challenge links to play instantly β no signup needed.
π Live App: https://wechess.netlify.app
- π§βπ€βπ§ Multiplayer Chess with Live Moves
- π Challenge Link System β share & play instantly
- β‘ Real-time updates using WebSockets / Socket.io
- πͺ Play as a registered user or guest
- βοΈ Move validation, turn system, check/checkmate detection
- π Reconnect & resume gameplay
- π Automatic match-result detection
| Layer | Technologies |
|---|---|
| Frontend | React, Tailwind CSS, Chess.js, Chessboard UI, Framer Motion, Redux, Socket IO |
| Backend | Node.js, Express.js |
| Real-time Communication | Socket.io |
| Database | MongoDB + Mongoose |
| Deployment | Netlify (Frontend), Backend Render.com |
WeChess/
βββ client/ # React Frontend
β βββ src/components/
β βββ src/pages/
β βββ src/store/
β
βββ server/ # Node.js + Express Backend
β βββ auth/
β βββ game/
β βββ config
β βββ index.js
β
βββ README.md
---
## π Run Project Locally
# Clone repo
git clone https://github.com/Sahillrathore/multiplayer-chess.git
cd multiplayer-chess
# Install dependencies
cd client && npm install
cd ../server && npm install
# Start backend
cd server
npm run dev
# Start frontend
cd ../client
npm run dev
## π Run Project Locally
* User logs in or continues as guest
* A new match is created OR joined via shared link
* Moves sync live between both players
* Checkmate / Resign β Game ends automatically
