Schwester-Projekt zu arduino.lehrstun.de fuer die 3D-Druck-AG am Lessing-Gymnasium. Offene jahrelange Nachmittags-AG (kein Trimester), 8-10 Einzel-SuS mit optionalen 2er-Paarungen, 4 Bambu-Lab-Drucker (3 geschlossen + 1 A1 mini). Konzept v2 (Reality-Check-Iteration 2026-05-24): - Onboarding-Pfad statt Pflicht-Lektionen (L1-L3 selbst-zertifiziert) - Selbstlern-Loop als Kern: SuS-Projekte wachsen die interne Bibliothek - Drill-Down-Lehrer-Dashboard (Wer ist hier / Wartet Review / Haengt fest) - Cockpit progressiv: zeigt nur was zum Status passt - Bambu-Cloud-API fuer Drucker-Live-Status (fragil + Fallback manuell) - Three.js-Vorschau fuer Cover-aus-3D-Ansicht (Etappe 6) - Vollstaendige Doku als Obsidian-Vault (24 Markdown-Dateien) - Entscheidungen E-001 bis E-022 in docs/decisions.md Etappe 1 lauffaehig (~1800 Zeilen Code): - Blueprint-Struktur (V8): routes/oeffentlich+profil+admin+api, services/auth+bambu+datei - Komplettes Schema in database.py (14 Tabellen, idempotent) - Login mit bcrypt + persistentem Lockout in DB (V7, verbessert ggue Arduino-Kurs der In-Memory-Dict nutzt) - Admin-Login + Profile-CRUD + PIN-Reset + PIN-Karten-Druckbogen - Inline-Edit-Endpunkt mit Whitelist + Audit-Log - Seeds: AG lessing-3d-ag + 4 Drucker + Default-Einstellungen - Smoke-Test bestanden (Login, Profil-Anlage, Lockout-Logging) Nicht im Repo (.gitignore): .env, *.db, venv/, .obsidian/workspace.json
57 lines
980 B
Python
57 lines
980 B
Python
"""Oeffentliche Routen (kein Login noetig).
|
|
|
|
Etappe 1: nur Startseite + Error-Handler portiert.
|
|
Etappe 3: Lektionen, Software, Projekt-Katalog, Troubleshooting.
|
|
Etappe 5: Drucker-Live-View.
|
|
"""
|
|
from flask import Blueprint, render_template, abort
|
|
|
|
bp = Blueprint("oeffentlich", __name__)
|
|
|
|
|
|
@bp.route("/")
|
|
def index():
|
|
return render_template("index.html")
|
|
|
|
|
|
# Stubs fuer spaetere Etappen — geben 501 zurueck, damit Navigation nicht bricht.
|
|
|
|
@bp.route("/lektionen")
|
|
def lektionen():
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/lektion/<int:nummer>")
|
|
def lektion_detail(nummer):
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/software")
|
|
def software():
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/software/<slug>")
|
|
def software_detail(slug):
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/projekte")
|
|
def projekte():
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/projekte/<int:projekt_id>")
|
|
def projekt_detail(projekt_id):
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/troubleshooting")
|
|
def troubleshooting():
|
|
abort(501)
|
|
|
|
|
|
@bp.route("/drucker")
|
|
def drucker():
|
|
abort(501)
|