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)
BHS_DATABASE_URL=(your credentials here)
REDIS_URL=(your credentials here)
AUTH0_CLIENT_ID=(your credentials here)
AUTH0_CLIENT_SECRET=(your credentials here)
AUTH0_DOMAIN=(your credentials here)
AUTH0_AUDIENCE=(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 flush
django-admin migrate
django-admin seed_data
django-admin runserver
- Visit your app at http://localhost:8000
- The initial login credentials are
admin@barberscore.com/password
If you have any questions let us know at admin@barberscore.com!