3 git clone git@github.com:yagu0/vchess.git
4 # or https version: git clone https://github.com/yagu0/vchess.git
9 # You need to install sqlite3, nodejs and npm (example for Ubuntu).
10 # wget & rsync help too, they are generally installed by default.
11 apt install sqlite3 nodejs npm
17 # And then within sqlite invite command:
20 # Then exit sqlite (\q works)
21 # Rename dbconnect.py.dist --> dbconnect.py and edit DB path on line 7
22 # Then synchronize the GameStat table:
26 # Rename and edit parameters.js.dist --> parameters.js
27 # Rename and edit discord.json.dist --> discord.json
28 # NOTE: token *must be empty* locally in dev mode
37 # Rename and edit parameters.js.dist --> parameters.js
38 # NOTE: parameters here and in server/config should be intuitive enough.
39 # if not, ask me or check in code :)
41 # Next step is just "git fat init && git fat pull" if I have your ssh key.
42 # NOTE: you should use your own strategy then, for binary files.
43 wget -r --no-parent https://xogo.fr/images/pieces/Eightpieces/tmp_png/
44 wget -r --no-parent https://xogo.fr/images/pieces/Otage/
45 wget -r --no-parent https://xogo.fr/images/pieces/Pacosako/
46 wget -r --no-parent https://xogo.fr/images/pieces/Titan/
47 rsync -a --exclude=index.html xogo.fr/images/ public/images/
48 wget -r --no-parent https://xogo.fr/variants/Empire/
49 wget -r --no-parent https://xogo.fr/variants/Orda/
50 wget -r --no-parent https://xogo.fr/variants/Xiangqi/
51 rsync -a --exclude=index.html xogo.fr/variants/ public/variants/
52 wget -r --no-parent https://xogo.fr/sounds/
53 rsync -a --exclude=index.html xogo.fr/sounds/ public/sounds/
55 wget -O public/favicon.ico https://xogo.fr/favicon.ico
57 # Generate Emergo + Avalam pieces
58 cd public/images/pieces/Emergo
59 ./generateSVG_simple.py
60 ./generateSVG_composite.py
67 # In production, use 'npm run build' and serve dist/ folder
68 # NOTE: this dist/ folder is symlinked as server/static.