From: smartchessguiapp Date: Thu, 19 Mar 2020 05:59:18 +0000 (+0100) Subject: More verbose instructions for creating sqlite database X-Git-Url: https://git.auder.net/variants/Dynamo/doc/img/current/gitweb.js?a=commitdiff_plain;h=94b800a43378bb245531dc502d6248954ab74380;p=vchess.git More verbose instructions for creating sqlite database --- diff --git a/server/README.md b/server/README.md index 9adba7ad..f88844c4 100644 --- a/server/README.md +++ b/server/README.md @@ -10,10 +10,25 @@ Instructions to run the server locally. ## Installation 1. Execute db/\*.sql scripts to create and fill db/vchess.sqlite - 2. Rename and edit config/parameters.js.dist into parameters.js - 3. npm install -Then run with the command +``` +cd server/db +sqlite3 vchess.sqlite.db +sqlite> .read create.sql +sqlite> .read populate.sql +sqlite> .exit +``` + + 2. Rename and edit `config/parameters.js.dist` into `config/parameters.js` + + 3. Install npm modules + + ``` + npm install + ``` + + ## Running + ``` npm start ```