Chess for fun.
All data in this project was gathered from http://www.chessgames.com. Just for fun and interest.
express, run a local server.cheerio, load content as a jQuery-DOM-like object.copy, copy assets files.del, delete distribute folder.
node main. Fetch the source code of http://www.chessgames.com/perl/gamesoftheday.node parse. Parse the source code, you may need to change the file name if necessary.node list. Fetchpgnfile.node app. Run a localexpressinstance.- Open a modern browser and visit
http://localhost:2000/ node gen. Generate static html files to the specified folder.node update. Updatepgn.jsondirectly.
npm run update, updatepgn.jsonand fetch newpgnfile.npm run dev, runupdateand start a local server.
├─ assets/ #
├─ cache/ #
├─ docs/ #
├─ node_modules/ #
├─ pgn/ #
├─ template/ #
│ ├─ chess.html #
│ └─ index.html #
├─ util/ #
│ ├─ dateFormat.js #
│ ├─ genIndexHTML.js #
│ ├─ getHTML.js #
│ ├─ parsePGN.js #
│ └─ wFile.js #
├─ .gitignore #
├─ .npmrc #
├─ app.js #
├─ eco.js #
├─ eco.json #
├─ gen.js #
├─ LICENSE #
├─ list.js #
├─ main.js #
├─ package.json #
├─ parse.js #
├─ pgn.json #
├─ README.md #
└─ update.js #
- Add notes from
.pgnfiles. - Mobile visit.
? - ECO openings.
- Generate static html files.
MIT