Giter Club home page Giter Club logo

chesshub's Introduction

ChessHub

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

Capture

Technologies used

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).

Setting up the project locally

  1. Make sure to star the repository before going ahead.
  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. 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 and place it in backend/engine directory. Also add the path of the engine to the CHESS_ENGINE_PATH variable in .env file in backend directory.
  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. 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 (Recommended)

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. Fork the repo. (Click on the fork button in the top right corner).
  2. 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. Add .env files to both your frontend and backend directories based on their respective .env.example templates (can be found inside the directories itself).
  2. 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

chesshub's People

Contributors

moonpatel avatar dharmendra016 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.