|
|
|
|
@ -13,6 +13,8 @@
|
|
|
|
|
`git pull <this-repo>`
|
|
|
|
|
`npm install express --save`
|
|
|
|
|
|
|
|
|
|
socketio, mysql
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
|
|
`node server.js`
|
|
|
|
|
@ -21,3 +23,17 @@ Access through
|
|
|
|
|
|
|
|
|
|
`http://localhost:3000`
|
|
|
|
|
|
|
|
|
|
### Development
|
|
|
|
|
|
|
|
|
|
BACKEND/SERVER DEVELOPMENT ONLY
|
|
|
|
|
|
|
|
|
|
To prevent the exhausting task of restarting the server on change
|
|
|
|
|
install and run with nodemon, it'll handle server restart each time
|
|
|
|
|
a js file is saved (this does also restart for front-end)
|
|
|
|
|
|
|
|
|
|
`npm install -g nodemon`
|
|
|
|
|
|
|
|
|
|
Run with
|
|
|
|
|
|
|
|
|
|
`nodemon --inspect server.js`
|
|
|
|
|
|
|
|
|
|
|