A simple sport event management.
- nginx
- Python 3
- sqlite3 and binding for Python
- cron
- Clone this repo or copy all its files into a directory.
- Setup nginx.
- Setup cronjob.
The configuration is done using environment variables.
PRESENCE_DB_PATH
: path to DB file (default:./data/presence.db
)PRESENCE_ADMINS
: usernames of adminsPRESENCE_COACHES
: user ids of coachesPRESENCE_EVENTS_PATH
: path to json file with regular events = "data/events.json"PRESENCE_PORT
: port for the http server
Coaches are highlighted and sorted at the end of the list of participants.
python3 presence.py --create
will read PRESENCE_EVENTS_PATH
file and will create events accordingly.