How zhihui0715/mmu-studymate works
StudyMate is a Flask web app whose evidenced workflow is account signup and login: browser requests reach registered account routes, which validate form data, query or update user records, set the session, and return pages or redirects. On each request the app loads the session’s user for use by routes and templates. The source also shows logout and a landing page. The tree contains profile and other UI assets, but their behavior is not established by the excerpts; the chart script excerpt is empty, so those capabilities are not inferred.
Main entry points: account.py Account routes · app.py Flask app · database.py User operations · __init__.py Blueprint registry
Components 10
Web application
- Flask app
app.py - Blueprint registry
routes/__init__.py - Landing page
templates/landing.html - Login page
templates/login.html - Signup page
templates/signup.html
Account workflows
- Account routes
routes/account.py - Form helpers
helpers.py
User data
- User operations
database.py - SQLite database
Other components
- Browser user
Connections 11
- Browser user → Flask app: sends requests
app.py - Flask app → Blueprint registry: registers routes
app.py - Blueprint registry → Account routes: includes blueprint
routes/__init__.py - Flask app → User operations: loads session user
app.py - Account routes → Form helpers: validates input
routes/account.py - Account routes → User operations: reads and writes
routes/account.py - User operations → SQLite database: queries and updates
database.py - Account routes → Landing page: renders
routes/account.py - Account routes → Login page: renders
routes/account.py - Account routes → Signup page: renders
routes/account.py - Flask app → Browser user: returns responses
app.py