How tris860/iga-1 works
IGA is a Flask-based learning-resource portal with teacher registration and verification, administrator account/content management, and student browsing and PDF viewing. The main workflow is an administrator approves a teacher, the teacher uploads categorized PDF materials, and students browse and stream them. The graph also shows account authentication, profile management, and the catalog-selection endpoint. Relationship evidence is limited to the supplied excerpts and SOURCE INDEX; unsampled routes and templates are not inferred.
Main entry points: views.py Portal routes · __init__.py Flask app setup · auth.py Registration and login · admin.js Admin dashboard
Components 16
Accounts and access
- Registration and login
website/auth.py - Verification email
website/mailer.py - User records
website/models.py
Learning content
- PDF records
website/models.py
Web application
- App startup
main.py - Flask app setup
website/__init__.py - App configuration
website/config.py - Portal routes
website/views.py - SQLite database
website/app.db - Admin dashboard
website/static/javascript/admin.js - Student viewer
website/static/javascript/student.js - Catalog browser
website/static/javascript/index.js - Login interface
website/static/javascript/script.js
Other components
- Teacher
- Student
- Administrator
Connections 20
- Teacher → Login interface: submits credentials
- Login interface → Registration and login: authenticates
- App startup → Flask app setup: creates app
main.py - Flask app setup → App configuration: loads settings
website/__init__.py - Flask app setup → Registration and login: registers routes
website/__init__.py - Flask app setup → Portal routes: registers routes
website/__init__.py - Flask app setup → User records: loads user model
website/__init__.py - Registration and login → User records: queries accounts
website/auth.py - Registration and login → SQLite database: updates accounts
website/auth.py - Administrator → Admin dashboard: manages portal
- Admin dashboard → Portal routes: requests management
- Portal routes → User records: manages accounts
website/views.py - Portal routes → Verification email: sends verification
website/views.py - Verification email → Flask app setup: uses mail service
website/mailer.py - Portal routes → PDF records: stores and lists PDFs
website/views.py - Portal routes → SQLite database: reads and writes
- Teacher → Admin dashboard: uploads materials
- Student → Student viewer: browses materials
- Student viewer → Portal routes: fetches and streams
website/static/javascript/student.js - Catalog browser → Portal routes: requests catalog
website/static/javascript/index.js