Skip to content

namboy94/bundesliga-tippspiel

Repository files navigation

Bundesliga Tippspiel

master develop
build status build status

Logo

Bundesliga Tippspiel is a website using flask and various plugins that allows users to bet on Bundesliga matches and compete with one another.

A live version of the page is available at hk-tippspiel.com.

Documentation

Documentation on the API can be found here.

For general documentation visit the progstats page

Deployment notes:

You can deploy the website using docker and docker-compose. To do this run the following commands:

# Builds the docker image
docker-compose build
# Starts the container and the database container
docker-compose up -d

The .env file should contain the following variables:

  • FLASK_SECRET
  • DB_MODE
  • RECAPTCHA_SITE_KEY
  • RECAPTCHA_SECRET_KEY
  • SMTP_HOST
  • SMTP_PORT
  • SMTP_ADDRESS
  • SMTP_PASSWORD
  • TELEGRAM_API_KEY
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_DB
  • DOMAIN_NAME
  • HTTP_PORT
  • BEHIND_PROXY
  • OPENLIGADB_SEASON

Backing up and restoring

The project provides a backup and restore script in the bin directory.

# Backup
bin/backup.sh backup.tar.gz
# Restore
bin/restore.sh backup.tar.gz

Further Information