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 aaf687acb8 Add pass turn and turn identifier
Pass turn via server
Identify whose turn by making their name bold
1 year ago
db Add taunt passive 1 year ago
public Add pass turn and turn identifier 1 year ago
.gitignore Add gitignore 1 year ago
README.md Update README 1 year ago
cardGen.js Add DB clauses to return requested cards only 1 year ago
components.js Add 'playerData' with socketId to roomMod 1 year ago
database.js Add DB clauses to return requested cards only 1 year ago
gameMod.js Add pass turn and turn identifier 1 year ago
package.json Add mysql module 1 year ago
roomMod.js Add playerId/Order in a jamjarred kinda way 1 year ago
rooms.js Add player/opponent Id to data and client UI 1 year ago
server.js Add 'pass', make roomData global+add item/player 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