An example flask app using arena as data source. Integrates ArenaPy.
This is how I recommend doing it.
-
Create an environment directory (we'll put the virtual env dir and the project dir in here, I like to keep my env dirs out of the project dir)
mkdir ~/chosen/path/arena-flask-env
-
Create a virtual environment for the project*:
cd ~/chosen/path/arena-flask-env virtualenv env
*http://pypi.python.org/pypi/virtualenv, if you don't have virtualenv, install it with pip
pip install virtualenv
if you don't have pip, install it with setuptools
sudo easy_install pip
-
Activate env
source ./env/bin/activate
-
Download and install arena-flask:
git clone git://github.com/jnhasty/arena-flask.git
arena-flask-env directory should now have 'env' dir and 'arena-flask' dir
-
CD into project and install requirements
cd ~/chosen/path/arena-flask-env/arena-flask pip install -r requirements.txt
-
Run the app and start building!
python app.py