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.
Go to file
Nathan Steel be96e46166 Changes to 'drawACard', serverdata, and UI changes
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'
2 years ago
db Add taunt passive 2 years ago
public Changes to 'drawACard', serverdata, and UI changes 2 years ago
.gitignore Add gitignore 2 years ago
README.md Update README 2 years ago
cardGen.js Changes to 'drawACard', serverdata, and UI changes 2 years ago
components.js Changes to 'drawACard', serverdata, and UI changes 2 years ago
database.js Add DB clauses to return requested cards only 2 years ago
gameHelper.js Changes to 'drawACard', serverdata, and UI changes 2 years ago
gameMod.js Changes to 'drawACard', serverdata, and UI changes 2 years ago
package.json Add mysql module 2 years ago
roomMod.js Changes to 'drawACard', serverdata, and UI changes 2 years ago
rooms.js Start of 'drawACard' on server side 2 years ago
server.js Changes to 'drawACard', serverdata, and UI changes 2 years 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