/gitlab-students-monitor

A simple Flask Admin app to monitor RepBee assignements on GitLab

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

GitLab Students' Monitor

License: GPL v3

This is a simple Flask Admin application that allows teachers using RepoBee to monitor students' progress on GitLab via python-gitlab.

Example configuration file

[environment]
SQLITE_DATABASE_FILE=<path to sqlite database file>
LOG_LEVEL="INFO"
[flask]
SECRET_KEY=<secret key>
FLASK_ADMIN_SWATCH="lumen"
FLASK_ADMIN_FLUID_LAYOUT="true"
[gitlab]
ENDPOINT=<the gitlab instance endpoint>
TOKEN=<a gitlab private token>
GROUP=<the repobee group id>
BASEURL=<the repobee group base URL>

Running with Docker

First build the image with ./bin/build <VERSION>, then run it with ./bin/run <VERSION>; the image will run using the file conf.toml in the current directory as a configuration file (see above) and saving the database in the current directory as gsm.db (the configuration is overridden by the GSM_SQLITE_DATABASE_FILE environment variable defined in the Dockerfile).