Skip to content

Contest Registration and Scoring System for the Barbershop Harmony Society International convention

License

Notifications You must be signed in to change notification settings

barberscore/barberscore-api

Repository files navigation

Barberscore API

This is the back-end API that powers the new scoring system for the Barbershop Harmony Society.

Getting Started

This API is based on Django and the Django Rest Framework. Here are the basics to set up your local environment.

Prerequisites

You will need the latest versions of the following core dependencies properly installed on your computer.

Installation

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

Configuration

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)

Running

Run these commands to start the app.

  • django-admin migrate
  • django-admin loaddata fix.json
  • django-admin runserver
  • Visit your app at http://localhost:8000
  • The initial login credentials are admin/password.

Support

If you have any questions let us know at admin@barberscore.com!

About

Contest Registration and Scoring System for the Barbershop Harmony Society International convention

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published