Skip to content

Chess Game Web App || Play chess with your best buddies on CHESSBuddy.

Notifications You must be signed in to change notification settings

tanu-chahal/CHESS-Buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 

Repository files navigation

Chess Multiplayer Game

Welcome to the Chess Multiplayer Game project! This is a real-time multiplayer chess game that allows you to play chess with your friends online. The project consists of both a frontend and a backend, providing a seamless and interactive gaming experience.

Preview-image

Preview Video

Check out our Preview Video to see the game in action!

Live Site

Check out the site live here or https://chessbuddy.vercel.app/

Getting Started

To get started with the game locally, follow these steps:

Frontend

  1. Navigate to the frontend directory using:

cd frontend

  1. Install frontend dependencies:

yarn

  1. Create two environment variables by making a .env in frontend directory
VITE_CLOUDINARY_API = <your-cloundinary-api-url>/image/upload
VITE_CHESSBUDDY_API = <chess-buddy-backend-api-url>
  1. Start the frontend app:

yarn dev or npm run dev

The frontend app will be accessible at http://localhost:5173/

Backend

  1. Create a .env file in the backend directory.

  2. Set up the following environment variables in the .env file:

JWT_SECRET_KEY=your_secret_key

MONGO_URI=your_mongodb_uri

  1. Navigate to the backend directory in a separate terminal:

cd backend

  1. Install backend dependencies:

yarn or npm install or npm i

  1. Start the backend server:

yarn dev or npm run dev

The backend server will run at http://localhost:4000/.

Contributing

We welcome contributions from the community! To contribute to the project:

  1. Fork the repository.

  2. Clone your forked repository:

git clone <your-forked-rep-link>

  1. Make your changes and improvements.

  2. Commit and push your changes to your forked repository.

  3. Create a pull request to the original repository. We'll review your changes and merge them if they meet the project's guidelines.

Features

  • Play chess in real-time with your friends.
  • Interactive chessboard with valid move highlighting.
  • Pawn promotion with underpromotion options.
  • Castling and en passant move support.

Technologies Used

  • Frontend: React, Socket.IO, Cloudinary, AXIOS, React Query
  • Backend: Node.js, Express, JWT, Mongoose, MongoDB, Socket.IO

Contact

For any questions or suggestions, feel free to contact us at [email protected].

Happy Coding! 🎉

About

Chess Game Web App || Play chess with your best buddies on CHESSBuddy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published