X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2FREADME.md;h=f88844c46452eb3e4d9ba210c66eda63bd9e1f03;hp=9adba7adf81a302f8b89e256f7fb96b0d8cb6d58;hb=94b800a43378bb245531dc502d6248954ab74380;hpb=478315ed4fbbfa96959b108efb634efb444aa424 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 ```