Website for comparing bands with information pulled from Last.fm using MongoDB, Nginx, Gunicorn and Flask.
The following assumes Ubuntu 14.04 64-bit
sudo apt-get install python-pip
sudo pip install -U pip
sudo pip install virtualenv
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
sudo apt-get install mongodb nginx
Sign up at Twitter and Last.fm
Rename keys_example.py to keys.py and insert your API keys into the file
Generate a random string for Flask and include in keys.py
See Configuring Nginx in Digital Oceans "How to Deploy Python WSGI Apps Using Gunicorn HTTP Server Behind Nginx"
Run getartists.py to populate the database.
This script pulls the information from Last.fm and creates and populates the database in MongoDB
gunicorn -b 127.0.0.1:8080 -w=3 worstband:app &
sudo service nginx start
python worstbandever.py &