A Bundesliga Tippspiel Website
Project description
Bundesliga Tippspiel
master | develop |
---|---|
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. A development instance is available at develop.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 build -f docker/Dockerfile -t bundesliga-tippspiel-prod . --no-chache
# Starts the container and the database container
docker-compose -f docker/docker-compose-prod.yml up -d
# If you want to use an updated image
docker-compose -f docker/docker-compose-prod.yml up -d --no-deps bundesliga-tippspiel-prod-app
The .env file must contain the following variables:
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
- FLASK_SECRET
- RECAPTCHA_SITE_KEY
- RECAPTCHA_SECRET_KEY
- SMTP_ADDRESS
- SMTP_PASSWORD
- SMTP_PORT
- SMTP_HOST
- OPENLIGADB_SEASON
- OPENLIGADB_LEAGUE
Backing up and restoring
All the data is stored in the mysql/mariadb database, so you can backup the database using the following command:
docker exec bundesliga-tippspiel-prod-db-container mysqldump --user root --password=$MYSQL_ROOT_PASSWORD bundesliga_tippspiel > $BACKUPS_DIR/bundesliga_tippspiel-$(date --iso-8601).db
And restoring can be done like this:
docker exec bundesliga-tippspiel-prod-db-container mysql -u root --password=$MYSQL_ROOT_PASSWORD bundesliga_tippspiel < $BACKUP_FILE
Further Information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bundesliga-tippspiel-1.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991fcab39bdc4df200c55e1fe9d8fe59321104a2513ac92a15cd819a2f89792d |
|
MD5 | 7ddff27a38ec1e68a0e2d92a464a459e |
|
BLAKE2b-256 | 017dbcb3f0330b860b2a2022a26f127d3c0aba4afc3562ff64de8cb1c3181bf5 |
Hashes for bundesliga_tippspiel-1.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2dfe14c5365022ce43353d3cff54455950def844000d521d3b8794dfa9dec7e |
|
MD5 | bb78e0cf45a9587212c9881ea6267687 |
|
BLAKE2b-256 | 2be49a18a917331c394ddff6f27a332a763a58e847816c92dea214e2a1b080b6 |