You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Return data from server for each client (cardCounts) Return data for client that drew (cardData, listPos. etc.) UI changes on client to display the temporary 'cards' |
1 year ago | |
|---|---|---|
| db | 1 year ago | |
| public | 1 year ago | |
| .gitignore | 1 year ago | |
| README.md | 1 year ago | |
| cardGen.js | 1 year ago | |
| components.js | 1 year ago | |
| database.js | 1 year ago | |
| gameHelper.js | 1 year ago | |
| gameMod.js | 1 year ago | |
| package.json | 1 year ago | |
| roomMod.js | 1 year ago | |
| rooms.js | 1 year ago | |
| server.js | 1 year ago | |
README.md
Card Game
Technology
- node.js
- express.js
- socketIO
- HTML5 (Canvas)
Install
sudo apt install npm
git pull <this-repo>
npm install express --save
socketio, mysql
Run
node server.js
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