Skip to content

itstheanurag/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Game 🎮♟️

A modern, real-time multiplayer chess game built with Node.js, Express, Socket.IO, React, and chess.js.

Chess Game React Node.js PostgreSQL Redis


✨ Features

  • ♟️ Real-time multiplayer chess with Socket.IO
  • 🎯 Complete chess rules including castling, en passant, and promotion
  • 👤 User authentication with Better Auth
  • 📊 Leaderboards and player statistics
  • 🧩 Daily chess puzzles
  • 💬 Real-time chat functionality
  • 🎨 Modern UI with Tailwind CSS v4 and Framer Motion
  • 📱 Responsive design for all devices

View all features →


🚀 Quick Start

Prerequisites

  • Node.js (v14+)
  • PostgreSQL
  • Redis
  • pnpm (recommended) or npm

Installation

# Clone the repository
git clone https://github.com/yourusername/chess.git
cd chess

# Backend setup
cd backend
pnpm install
cp .env.example .env
# Edit .env with your configuration
pnpm db:push
pnpm dev

# Frontend setup (in a new terminal)
cd frontend
pnpm install
cp .env.example .env
# Edit .env with your configuration
pnpm dev

📖 Detailed Setup Guide →


📚 Documentation


🛠️ Tech Stack

Backend

  • Node.js & Express
  • Socket.IO for real-time communication
  • Drizzle ORM with PostgreSQL
  • Redis for caching
  • Better Auth for authentication

Frontend

  • React 19 with TypeScript
  • Vite for fast development
  • Zustand for state management
  • Tailwind CSS v4
  • Framer Motion for animations

View complete tech stack →


📁 Project Structure

chess/
├── backend/          # Node.js + Express + Socket.IO
├── frontend/         # React + Vite + TypeScript
├── docs/             # Documentation
└── README.md         # This file

View detailed structure →


🎮 Usage

  1. Start the backend server (runs on http://localhost:3000)
  2. Start the frontend (runs on http://localhost:5173)
  3. Create an account or log in
  4. Create a game or join an existing one
  5. Play chess in real-time!

🧪 Available Scripts

Backend

pnpm dev          # Start development server
pnpm build        # Build for production
pnpm db:generate  # Generate database migrations
pnpm db:push      # Push schema to database

Frontend

pnpm dev      # Start development server
pnpm build    # Build for production
pnpm preview  # Preview production build

View all scripts →


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  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

This project is open source and available under the MIT License.


🙏 Acknowledgments


📧 Contact

For questions or support, please open an issue on GitHub.


Happy Chess Playing! ♟️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages