Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.
/ WorstBandEver Public archive

Website for comparing bands using MongoDB, Nginx, Gunicorn and Flask

License

Notifications You must be signed in to change notification settings

daviddever/WorstBandEver

Repository files navigation

WorstBandEver

Website for comparing bands with information pulled from Last.fm using MongoDB, Nginx, Gunicorn and Flask.

Installation

The following assumes Ubuntu 14.04 64-bit

Install pip

sudo apt-get install python-pip
sudo pip install -U pip

Setup Virtualenv

sudo pip install virtualenv
virtualenv virtualenv
source virtualenv/bin/activate

Install script requirements

pip install -r requirements.txt

Install MongoDB and Nginx

sudo apt-get install mongodb nginx

Register for API Keys and Generate Random String for Flask

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

Configuring Nginx

See Configuring Nginx in Digital Oceans "How to Deploy Python WSGI Apps Using Gunicorn HTTP Server Behind Nginx"

Populate the Artist Database

Run getartists.py to populate the database.

This script pulls the information from Last.fm and creates and populates the database in MongoDB

Start the Site

gunicorn -b 127.0.0.1:8080 -w=3 worstband:app &
sudo service nginx start
python worstbandever.py &

About

Website for comparing bands using MongoDB, Nginx, Gunicorn and Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages