chandakmayank / poonaville

Backend code for the Pune Biennale 2017 multiplayer game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Readme

Setting up the development environment

Poonaville is a Flask based Python app that uses web sockets for real time game updates. To set up a development environment, make sure that pip and virtualenv are installed on the target system.

The use the following commands to setup the development environment

# clone the repo
git clone 'https://github.com/abhikpal/poonaville/'

# create a new virtualenv for poonaville
virtualenv -p python3 venv

# activate the virtualenv
source venv/bin/activate

# change to the source code directory and install all required libraires
cd poonaville
pip install -r requirements.txt

# create the database
python application.py createdb

# initialize the database with required values
python application.py initdb

# run the server
python applicaiton.py start

Usage

The Flask app starts a webserver on 0.0.0.0:5000.

  • Users can view the controller by going to http://0.0.0.0:5000/ through their devices. Replace the 0.0.0.0 with the IP address of the machine the game is running on (on *nix machines, use ip addr show to view the IP address).

  • The main game screen -- the projection -- is broadcasted on http://127.0.0.1:5000/projection/. This should ideally be accessed on the machine acting as the server.

About

Backend code for the Pune Biennale 2017 multiplayer game

License:GNU General Public License v3.0


Languages

Language:JavaScript 90.6%Language:Python 6.7%Language:HTML 2.3%Language:CSS 0.4%