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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e613401b3f2e3c109195281d2d4a29c7046893ff8d131bce5ff8bba5e8b974e3 |
|
MD5 | 983ef755f8d0d021f72f626d8f1f8104 |
|
BLAKE2b-256 | 77196dc3a64cde0cb8554bfe1facd020b5d3dd56cb8a4563bfe9da213804b4b2 |
Hashes for bundesliga_tippspiel-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d11bd4ce0a3c6236f15839d2b33cd9872a4e5f735c2bec6492c5192fa6f4ab7 |
|
MD5 | ad84311c77b0860853477e012220a55c |
|
BLAKE2b-256 | 0fbd159ce2165460b1365af987f23d681ceeacb8cadee4984f8055760adc65e5 |