/snakey.io

Snakey.io implementation files

Primary LanguageJavaScriptMIT LicenseMIT

snakey.io

Snakey.io implementation files

Game Server

Running locally

  1. Download & install Node.js

  2. Download snakey.io code or clone repository.

    git clone git@github.com:gkapkowski/snakey.io.git
    cd snakey.io/
  3. Install dependencies

    npm install package.json
  4. Start server (default port: 5000)

    npm start

    or

    node server/server.js [PORT]

Running on Heroku

  1. Download & install Heroku Toolbelt

  2. Clone snakey.io repository

    git clone git@github.com:gkapkowski/snakey.io.git
    cd snakey.io/
  3. Create new heroku app with snakey.io (Heroku will automatically add new remote repo)

    heroku create
  4. Deploy your snakey.io instance

    git push heroku master

Player servers (snakes)

Running Locally

  1. Download snakey.io code (Download) or clone repository.

    git clone git@github.com:gkapkowski/snakey.io.git

Django

It's recommended to run snake server in virtual enviroment. Read more at http://www.virtualenv.org/en/latest/

  1. go to example django snake dir

    cd snakey.io/examples/django
    
  2. Install requirements:

    pip install requirements.txt
  3. Run server (default port 8000)

    gunicorn example.wsgi:application

Node.js

  1. Download & install Node.js from http://nodejs.org/download/

  2. Go to example snake dir

    cd snakey.io/examples/node/
  3. Install dependencies

    npm install
  4. Run server (default port 8001)

    npm start

    or

    node snake.js

Running on heroku

TODO: update