Skip to content

A React Redux chessboard connected to a chess server.

License

Notifications You must be signed in to change notification settings

Vishesh-Pandey/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.

Figure 1

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'
        },
        server: {
          prot: 'wss',
          host: 'pchess.net',
          port: '8443'
        }
      }}
    />
  );
}

export default App;

Create an .env file.

$ cp .env.example .env

Install the npm packages.

$ npm install

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.3%
  • CSS 1.9%
  • HTML 0.8%