projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
478315e
)
More verbose instructions for creating sqlite database
author
smartchessguiapp
<smartchessguiapp@gmail.com>
Thu, 19 Mar 2020 05:59:18 +0000
(06:59 +0100)
committer
smartchessguiapp
<smartchessguiapp@gmail.com>
Thu, 19 Mar 2020 05:59:18 +0000
(06:59 +0100)
server/README.md
patch
|
blob
|
blame
|
history
diff --git
a/server/README.md
b/server/README.md
index
9adba7a
..
f88844c
100644
(file)
--- 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
```