~martijnbraam/boarddb

Make 404 page more useful for lost souls
Fix double-append bug

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~martijnbraam/boarddb
read/write
git@git.sr.ht:~martijnbraam/boarddb

You can also use your local clone with git send-email.

#boardb

#Deployment

$ cd boarddb
$ python3 -m venv venv
$ ./venv/bin/python3 setup.py develop
$ export FLASK_APP=boarddb
$ flask db upgrade
$ flask boarddb initial-import board.tsv
$ flask boarddb create-user --admin admin
$ flask run

#Configuration

Config can be stored in the instance folder as config.toml or config.py

# These are the defaults
SECRET_KEY = "dev"
WTF_CSRF_SECRET_KEY = "dev"
# Database is relative to the instance folder
SQLALCHEMY_DATABASE_URI = "sqlite:///database.db"
SEND_FILE_MAX_AGE_DEFAULT = 30

Images are loaded from the images subfolder in the instance folder, thumbnails will be cached in the thumbs folder.