Giter Site home page Giter Site logo

ashishgusain17 / chesslive365 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.43 MB

A chess website where you can challenge your friends for a 2-player match without logging in or any verification. All other persons with the access to the game-link can view the game live.

Home Page: https://chesslive365.herokuapp.com/

JavaScript 87.64% HTML 3.14% CSS 8.96% Python 0.26%
dualchess chess chess-position chess-game

chesslive365's Introduction

Chesslive365

A chess website where you can challenge your friends for a 2-player match without logging in or any verification.
Also, all other persons with the access to the game-link can view the game live.
Visit: https://chesslive365.herokuapp.com/

Click on the video link below to see the working of this app:

Click here

UI in mobile & desktop

You can play in desktop as well as from your mobile devices. Screenshots of both the versions are attached below:

Dependencies required:

Features:

1.) Challenge your friends for a 2-player match without logging in or any verification.
2.) All other persons with the access to the game-link can view the game live.
3.) You can play with both the pieces by yourself in home-page.
4.) Reverse board, change box colors, 5 different pieces(like metal, gothic, graffiti) are available.

Changes while working locally:

FilePath: backend/package.json/
Change scripts as below:
"start": "nodemon index.js"

FilePath: src/context/position/PositionState.js/ 
change HOST variable value to REACT_APP_BACKEND_LOCALHOST

Create a .env file inside root folder and provide following env variable:
REACT_APP_BACKEND_LOCALHOST = 'http://localhost:5000'

Create a .env file inside backend folder too and provide following env variables:
MONGO_URL 
PORT = 5000

Changes while deploying:

FilePath: backend/package.json/ 
Change scripts as below:
"start": "node index.js"

FilePath: src/context/position/PositionState.js/
change HOST variable value to REACT_APP_BACKEND_HOST

Create a .env file inside root folder and provide following env variable:
REACT_APP_BACKEND_HOST = <end_point_url>

Create a .env file inside backend folder too and provide following env variables:
MONGO_URL 
PORT = 5000

SELF NOTE:

1.) Changes in files in backend folder:
app.listen(process.env.PORT || '0.0.0.0' );
from gitbash : touch Procfile   ==>  web: node index.js  ==>  scripts:{"start": "node index.js"}

2.) Update config vars in heroku settings for environment variables 
in both frontend and backend

3.) While deploying, since backend folder is already inside a git repo, we cannot
directly push it. 
So, copy backend files(except node_modules and .env) in some non-git folder(Assume FOLDER_NAME = 'chesslive365api') 
and follow below steps:


cd chesslive365api
git init
git remote add heroku  https://git.heroku.com/chesslive365api.git
git add .
git commit -am "make it better"
git push heroku main --force

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.