Sample attendance checking via a unique QR code
Go to file
2022-07-28 21:13:34 +00:00
templates Uses websockets to refresh the page when QR code scanned 2022-07-28 21:13:34 +00:00
.gitignore Changes for use in a proper domain 2022-07-28 19:38:44 +00:00
init_db.py Initial version 2022-07-28 01:42:30 -05:00
main.py Uses websockets to refresh the page when QR code scanned 2022-07-28 21:13:34 +00:00
README.md Uses websockets to refresh the page when QR code scanned 2022-07-28 21:13:34 +00:00
requirements.txt Initial version 2022-07-28 01:42:30 -05:00
schema.sql Initial version 2022-07-28 01:42:30 -05:00

Sample application for verifying attendance through a unique QR code

To run in a Python virtual environment, using Flask:

mkvenv flask
venv flask
pip install Flask Flask-QRcode Flask-UUID

To create an empty database.db sqlite file with the table described in schema.sql:

./init_db.py

Nginx reverse proxy configuration

Add this code to the nginx configuration file for the virtual host:

    location /socket.io {
        set $webapp http://attendance.lxd:5000;
        include proxy_params;
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass $webapp;
    }