Commit | Line | Data |
---|---|---|
625022fd BA |
1 | # vchess-server |
2 | ||
68ff3913 | 3 | Instructions to run the server locally. |
625022fd | 4 | |
68ff3913 | 5 | ## Requirements |
625022fd | 6 | |
f5f82ba6 BA |
7 | - Node.js + npm (any recent version) |
8 | - SQLite (version 3) | |
625022fd | 9 | |
68ff3913 BA |
10 | ## Installation |
11 | ||
f5f82ba6 | 12 | 1. Execute db/\*.sql scripts to create and fill db/vchess.sqlite |
68ff3913 | 13 | |
94b800a4 | 14 | ``` |
15 | cd server/db | |
1ad88021 | 16 | sqlite3 vchess.sqlite |
94b800a4 | 17 | sqlite> .read create.sql |
18 | sqlite> .read populate.sql | |
19 | sqlite> .exit | |
20 | ``` | |
21 | ||
f5f82ba6 | 22 | 2. Rename and edit `config/parameters.js.dist` into `config/parameters.js` |
94b800a4 | 23 | |
f5f82ba6 | 24 | 3. Install npm modules |
94b800a4 | 25 | |
f5f82ba6 BA |
26 | ``` |
27 | npm install | |
28 | ``` | |
29 | ||
30 | ## Running | |
94b800a4 | 31 | |
68ff3913 BA |
32 | ``` |
33 | npm start | |
34 | ``` |