# or https version: git clone https://github.com/yagu0/vchess.git
cd vchess
+### INSTALL TOOLS ###
+
+# You need to install sqlite3, nodejs and npm (example for Ubuntu).
+# wget & rsync help too, they are generally installed by default.
+apt install sqlite3 nodejs npm
+
### SERVER ###
cd server/db
-# Next line doesn't work, but should (?!); anyway typing in SQLite works.
-sqlite3 vchess.sqlite '.read create.sql ; .read populate.sql'
+sqlite3 vchess.sqlite
+# And then within sqlite invite command:
+.read create.sql
+.read populate.sql
+# Then exit sqlite (\q works)
# Rename dbconnect.py.dist --> dbconnect.py and edit DB path on line 7
# Then synchronize the GameStat table:
./sync_gamestat.py
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- version="1.1"
- id="Mark possible moves - vchess"
- viewbox="0 0 599 599"
- width="600"
- height="600"
- sodipodi:docname="mark.svg"
- inkscape:version="0.92.4 5da689c313, 2019-01-14">
- <metadata
- id="metadata8">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs6" />
- <sodipodi:namedview
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="960"
- inkscape:window-height="1060"
- id="namedview4"
- showgrid="false"
- inkscape:zoom="0.39333333"
- inkscape:cx="310.16949"
- inkscape:cy="300"
- inkscape:window-x="0"
- inkscape:window-y="20"
- inkscape:window-maximized="0"
- inkscape:current-layer="Mark possible moves - vchess" />
- <circle
- id="mark_circle"
- cx="300"
- cy="300"
- r="180"
- style="fill:#9900cc;stroke-width:0.89999998" />
-</svg>