A widget for global beer database management, which kegbot will have the ability to pull from.
Required:
- Python 2.7
Optional, but recommended:
- virtualenv, setuptools
Built in a virtualenv with the following packages, installed using pip:
- Django==1.5.1
- pillow
- django-imagekit
- django-crispy-forms==1.3.2
- djangorestframework
- django-filter
- django-selectable
- markdown
- south
- gunicorn
For production servers, the following are recommended with sudo apt-get:
- nginx
- supervisor
- Git clone into directory of your choice
- Modify local_settings.py for your local environment (YOUR_DIR/kegbot_BeerDB/*)
-
python manage.py collectstatic
-
python manage.py runserver 0.0.0.0:<PORT #>
- Update values in /production/kegbot_BeerDB-supervisor.conf (YOUR_DIR/kegbot_BeerDB/*)
- Update values in /production/kegbot_BeerDB-nginx.conf (YOUR_DIR/kegbot_BeerDB/*)
-
sudo cp production/kegbot_BeerDB-nginx.conf /etc/nginx/sites-available/
-
sudo ln -s /etc/nginx/sites-available/kegbot_BeerDB-nginx.conf /etc/nginx/sites-enabled/
-
sudo cp production/kegbot_BeerDB-supervisor.conf /etc/supervisor/conf.d/kegbot_BeerDB.conf
-
sudo service nginx restart
-
sudo service supervisor restart
Then the kegbot_BeerDB will be available on http://YO.UR.IP.AD:8334!
kegbot_BeerDB code is licensed under GNU v2.0. The initial contents leverage beer data from openbeerdb.com, licensed under the Open Database License & Database Content License.