This is the back-end API that powers the new scoring system for the Barbershop Harmony Society.
This API is based on Django and the Django Rest Framework. Here are the basics to set up your local environment.
You will need the latest versions of the following core dependencies properly installed on your computer.
Run these commands to get started
git clone https://github.com/barberscore/barberscore-api.git
(this repo)cd barberscore-api
pipenv sync --dev
createdb barberscore
Set the following Environment Variables: Note: if you don't have credentials, talk to the Barberscore Admin.
DJANGO_SETTINGS_MODULE=settings.dev
PYTHONPATH=project
SECRET_KEY=(your secret here)
DATABASE_URL=(your credentials here)
REDIS_URL=(your credentials here)
BARBERSCORE_CLIENT_ID=(your credentials here)
BARBERSCORE_CLIENT_SECRET=(your credentials here)
AUTH0_DOMAIN=(your credentials here)
CLOUDINARY_URL=(your credentials here)
WKHTMLTOPDF_PATH=/usr/local/bin/wkhtmltopdf (or your path)
Run these commands to start the app.
django-admin migrate
django-admin loaddata fix.json
django-admin runserver
admin/password
. If you have any questions let us know at admin@barberscore.com!