A lightweight, real-time chess app built in Node, Socket.IO, React, and Immutable.
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.
To get a local copy up and running follow these simple example steps.
- Clone the repo
-
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
-
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.
Reach out to me at one of the following places!
- Email at
oleynik.andrey01@gmail.com