0.0.4 • Published 6 years ago

lombardo-chess-demo v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Chess Demo by Robert Lombardo

  1. Make sure you have the following installed:

  2. Run:

    npm install
    npm start
  3. Then open your http://localhost:8080/ to see the included demo page.

    If you don't want to use localhost on port 8080, you can change it in package.json and webpack.config.js.

Embed in a Web Page:

  1. Run npm run build-dev or npm run build-prod.

  2. <!DOCTYPE html>
    <head>
      <link rel="stylesheet" href="path/to/main.css">
    </head>
    <body>
        <div id="chessModuleParent"></div>
        <script src="path/to/chess_bundle.js"></script>
    </body>
    </html>

Embed in Another React App:

  1. Run npm run build-dev or npm run build-prod.