zumba / node-defender-game

Defend against waves of murderous server side code that wants nothing more than to kill and disconnect your node client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

booth-node-defender

Protect your node client for as long as possible. Defend against waves of murderous server side code that wants nothing more than to kill and disconnect your node client.

Setup && Run

  1. npm install
  2. npm start

Testing

Run npm test.

Configuration

The configuration of the server is available via environment variables. For example:

PORT=4000 npm start

or for multiple configurations:

PORT=4000 LOGLEVEL=info npm start

  • PORT - Application port. (Default: 8080)
  • CLIENT - Client host. (default: http://localhost:8080)
  • LOGLEVEL - How verbose should the log be. (Default: info)
  • DELAY - How long should the server wait to respond to a player action in milliseconds. (Default: 1000)
  • MONGOHOST - Hostname for the mongodb backend (Default: 127.0.0.1)
  • MONGOPORT - Port for the mongodb backend (Default: 27017)
  • MONGODB - Defender DB (Default: node-defender)
  • CLIENTHASH - Client game md5 hash generated from grunt security. If this value isn't specified, no client check will be performed.

About

Defend against waves of murderous server side code that wants nothing more than to kill and disconnect your node client.

License:MIT License


Languages

Language:JavaScript 90.5%Language:CSS 9.5%