Skip to content

A React Redux chessboard connected to a chess server.

License

Notifications You must be signed in to change notification settings

Murkan12/react-chess

 
 

Repository files navigation

React Chess

React Chess is "just a chessboard" as lightweight as it can possibly be. It is connected to this chess server as well as to this chess api.

Demo

Check out this demo.

Install and Setup

Make sure that both the chess server and the API are set up properly as per the src/App.js file.

import Chess from 'features/Chess';

const App = () => {
  return (
    <Chess
      props={{
        api: {
          prot: 'https',
          host: 'pchess.net',
          port: '443'
        },
        ws: {
          prot: 'wss',
          host: 'pchess.net',
          port: '8443'
        }
      }}
    />
  );
}

export default App;

Create an .env file.

cp .env.example .env

Install the npm packages.

npm install

Add the following entry to your /etc/hosts file.

127.0.0.1       www.chesslablab.com

Start the app.

npm start

Build the App

Build the app for production.

npm run build

License

The MIT License.

Contributions

See the contributing guidelines.

Happy learning and coding!

About

A React Redux chessboard connected to a chess server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • CSS 2.0%
  • HTML 0.8%