Add barcode scanning and meal selection features

Introduces a barcode scanner page using the camera for food item entry, adds routes for selecting meal types and scanning products, and updates the test.html template to allow adding items to specific meals. Also updates branding in base.html, changes the Flask secret key, and enables SSL by default in app.py.
This commit is contained in:
2025-07-08 11:00:30 +02:00
parent 30e5e959cd
commit 5b378cad38
6 changed files with 151 additions and 44 deletions

10
app.py
View File

@@ -13,7 +13,7 @@ from application.user.routes import user_bp
from typing import Optional
# Config
app.config["SECRET_KEY"] = "Iman"
app.config["SECRET_KEY"] = "Stef123"
login_manager.login_view = "login" # type: ignore
@@ -81,5 +81,9 @@ def scan():
# Run
if __name__ == "__main__":
# app.run(host="0.0.0.0", debug=True, ssl_context=("cert.pem", "key.pem"))
app.run(host="0.0.0.0", debug=True)
app.run(
host="0.0.0.0",
port=443,
debug=True,
ssl_context=("cert.pem", "key.pem"),
)