A simple group-based word game designed to be played on phones and tablets while at the same location.
Checkout the site online at: https://gather.gg
The code is organized into three main folders.
server
- a django based server (serving non-game files)static
- all the static files for the game (which is a single page application)realtime_server
- a nodejs server for the realtime game API
You will need to install mysql
, node
, python
, pip
, and virtualenv
first.
npm install -g grunt-cli bower
bower install
npm install
virtualenv env
pip install -r requirements.txt
cp local.template.json server/_local.json
vim _local.json # fill in details
grunt setup
# start node real time server
node node/index.js
# in a separate terminal/tmux pane
virtualenv env/bin/activate # enter virtual environment
cd django
python manage.py runserver # start the python test server
Run server tests:
grunt tests
Setup watch for static or server tests or client tests:
grunt watch:tests
# or
grunt watch:static
# or
grunt karma
- run manage.py collectstatic
- enable apache modwsgi and rewrite
- sym link apache config and enable