From: Benjamin Auder Date: Fri, 15 Sep 2023 10:27:01 +0000 (+0200) Subject: Attempt to clarify installation instructions a little X-Git-Url: https://git.auder.net/?p=vchess.git;a=commitdiff_plain;h=HEAD;hp=14bdbfe82239d39f21198670d6bd55226d1deace Attempt to clarify installation instructions a little --- diff --git a/.gitfat b/.gitfat index 53d69a1a..3dc7c803 100644 --- a/.gitfat +++ b/.gitfat @@ -1,2 +1,2 @@ [rsync] -remote = gitfat@auder.net:~/files/vchess +remote = gitfat@auder.net:files/vchess diff --git a/INSTALL_INSTRUCTIONS b/INSTALL_INSTRUCTIONS index c560b1fb..936641c1 100644 --- a/INSTALL_INSTRUCTIONS +++ b/INSTALL_INSTRUCTIONS @@ -4,11 +4,20 @@ git clone git@github.com:yagu0/vchess.git # 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 diff --git a/client/public/images/mark.svg b/client/public/images/mark.svg deleted file mode 100644 index 9c1b930a..00000000 --- a/client/public/images/mark.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - diff --git a/client/src/store.js b/client/src/store.js index d57a7f55..f8b6b24e 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -19,7 +19,7 @@ export const store = { "X-Requested-With": "XMLHttpRequest" }; fetch( - params.serverUrl + "/variants", + params.serverUrl + "/allvarslist", { method: "GET", headers: headers diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue index 8de335e6..d6cbda93 100644 --- a/client/src/views/Variants.vue +++ b/client/src/views/Variants.vue @@ -35,7 +35,7 @@ export default { }, created: function() { ajax( - "/variants", + "/allvarslist", "GET", { success: (res) => { diff --git a/server/routes/variants.js b/server/routes/variants.js index 6e0e3af1..28337e53 100644 --- a/server/routes/variants.js +++ b/server/routes/variants.js @@ -4,7 +4,7 @@ let router = require("express").Router(); const VariantModel = require("../models/Variant"); const access = require("../utils/access"); -router.get('/variants', access.ajax, function(req, res) { +router.get('/allvarslist', access.ajax, function(req, res) { VariantModel.getAll((err,variants) => { res.json(err || { variantArray:variants }); });