2023-10-13 03:18:14 +05:30
2023-10-13 03:04:58 +05:30
2023-09-19 00:36:36 +05:30
2023-07-25 18:52:36 +05:30
2023-10-13 03:18:14 +05:30

ChessHub

ChessHub is a web application for chess enthusiasts that allows players to compete against each other.

Capture

Technologies used

  1. ReactJS
  2. MongoDB
  3. NodeJS
  4. ExpressJS
  5. Mantine
  6. Socket.IO
  7. Mongoose

Features

  1. Play chess with your friends
  2. Play with computer with customizable ELO
  3. View your game history
  4. Make friends
  5. Analyze your games

How to contribtute to this repository ?

You can contribute to this repository by checking out existing issues or creating your own in the issue section (if you experience any bugs in the application or you want to propose a new feature).

  1. Star the repository
  2. Fork the repo. (Click on the fork button in the top right corner).
  3. Clone the forked repo to your local machine.
git clone https://github.com/moonpatel/ChessHub.git 
  1. Change the present working directory.
cd ChessHub
  1. Create a new branch.
git checkout -b new-branch
  1. Create a .env file in both frontend and backend directory according to the .env.example files with the required environment variables.
  2. Install the dependencies for frontend.
cd frontend
npm install
  1. Install the dependencies in the backend.
cd backend
npm install
  1. Start the frontend
cd frontend
npm run dev
  1. The stockfish chess engine binary in the repo is for Linux systems only. If you are not using Linux then download the required stockfish chess engine binary from stockfish website. Also add the path of the engine to the CHESS_ENGINE_PATH variable in .env file in backend.
  2. Start the backend
cd backend
npm run dev
  1. Visit http://localhost:5173 in your browser to view the application.

Setting up project using docker

There is an alternative option to set up the project using docker. Make sure you have docker and docker-compose installed on your system.

  1. Star the repository
  2. Fork the repo. (Click on the fork button in the top right corner).
  3. Clone the forked repo to your local machine.
git clone https://github.com/moonpatel/ChessHub.git 
  1. Change the present working directory.
cd ChessHub
  1. Build the docker images for frontend and backend.
docker-compose build
  1. Run the docker containers.
docker-compose up
  1. Visit the website from your browser -> http://localhost:5173
Languages
JavaScript 99.1%
HTML 0.5%
TypeScript 0.4%