From 94b800a43378bb245531dc502d6248954ab74380 Mon Sep 17 00:00:00 2001 From: smartchessguiapp Date: Thu, 19 Mar 2020 06:59:18 +0100 Subject: [PATCH] More verbose instructions for creating sqlite database --- server/README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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 ``` -- 2.44.0