Skip to content

OlAndrey/React-Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React Chess

A lightweight, real-time chess app built in Node, Socket.IO, React, and Immutable.

Development

Node.js 18 or newer is recommended.

This project is structured as a monorepo, divided into two packages:

  • client - React.js application for the front-end, deployed to Chess-client.
  • server - Node, Socket.io application for the back-end, deployed to Chess-server.

Getting Started

To get a local copy up and running follow these simple example steps.

  • Clone the repo

Server

  • cd into backend and write npm install or npm i in command terminal

    $ cd server
    $/server npm install
    
  • Write npm run dev to start the backend server

    $/server npm run dev
    

Client

  • cd into my-project and write npm install or npm i in command terminal

    $ cd client
    $/client npm install
    
  • Write npm start to start the react server

    $/client npm start
    

Create a .env file in the client directory and add the next contents to it:

  REACT_APP_WS_URL : localhost:5000 or any other url to connect web socket`

Open http://localhost:3000 with your browser to see the result.

Support

Reach out to me at one of the following places!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published