X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2FREADME.md;h=ed41ad9578b0eda4b84d6f8230d240a183000ec5;hp=f88844c46452eb3e4d9ba210c66eda63bd9e1f03;hb=7a0c1b7e33a346195caebfdfa6489e7c6d0457e6;hpb=94b800a43378bb245531dc502d6248954ab74380 diff --git a/server/README.md b/server/README.md index f88844c4..ed41ad95 100644 --- a/server/README.md +++ b/server/README.md @@ -4,30 +4,37 @@ Instructions to run the server locally. ## Requirements - - Node.js + npm (any recent version) - - SQLite (version 3) +- Node.js + npm (any recent version) +- SQLite (version 3) ## Installation - 1. Execute db/\*.sql scripts to create and fill db/vchess.sqlite +1. Execute db/\*.sql scripts to create and fill db/vchess.sqlite ``` cd server/db -sqlite3 vchess.sqlite.db +sqlite3 vchess.sqlite sqlite> .read create.sql sqlite> .read populate.sql sqlite> .exit ``` - 2. Rename and edit `config/parameters.js.dist` into `config/parameters.js` +2. Rename and edit `db/dbconnect.py.dist` into `db/dbconnect.py`. +Then synchronize the GameStat table: - 3. Install npm modules - - ``` - npm install - ``` +``` +./sync_gamestat.py +``` + +2. Rename and edit `config/parameters.js.dist` into `config/parameters.js` + +3. Install npm modules + +``` +npm install +``` - ## Running +## Running ``` npm start