Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 1.32 KB

README.md

File metadata and controls

78 lines (54 loc) · 1.32 KB

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!