How k3maal/mobile-app-with-flask works
This is a student–teacher project tracking application. Students register or sign in, create projects with learning goals and work-process selections, then edit, complete, and review them; teachers browse projects, make startup and final decisions, and send feedback. The React client routes these workflows through a fetch-based API to Flask endpoints backed by SQLite. The README is empty, so capabilities and relationships below are based on the supplied source excerpts and SOURCE INDEX; unsampled components are not assumed to have additional behavior.
Main entry points: api.js HTTP API client · App.jsx App routes · app.py Flask app · Login.jsx Sign in
Components 16
React client
- App routes
frontend/src/App.jsx - Auth state
frontend/src/context/AuthContext.jsx - Role navigation
frontend/src/components/Navbar.jsx - HTTP API client
frontend/src/services/api.js
Student workflow
- Sign in
frontend/src/pages/Login.jsx - Registration
frontend/src/pages/Register.jsx - Student dashboard
frontend/src/pages/StudentDashboard.jsx - Project creation
frontend/src/pages/CreateProject.jsx
Teacher workflow
- Project detail
frontend/src/pages/ProjectDetail.jsx - Teacher dashboard
frontend/src/pages/TeacherDashboard.jsx
Flask services
- Flask app
backend/app.py - Account endpoints
backend/routes/auth.py - Student project endpoints
backend/routes/student.py - Teacher endpoints
backend/routes/docent.py - SQLite data
backend/database.py
Other components
- Student / teacher
Connections 28
- Student / teacher → Sign in: signs in
- Student / teacher → Registration: creates account
- Student / teacher → Project creation: submits project
frontend/src/pages/CreateProject.jsx - Student / teacher → Project detail: reviews project
frontend/src/pages/ProjectDetail.jsx - App routes → Sign in: routes to
frontend/src/App.jsx - App routes → Registration: routes to
frontend/src/App.jsx - App routes → Student dashboard: routes to
frontend/src/App.jsx - App routes → Teacher dashboard: routes to
frontend/src/App.jsx - App routes → Project creation: routes to
frontend/src/App.jsx - App routes → Project detail: routes to
frontend/src/App.jsx - Role navigation → Auth state: reads session
frontend/src/components/Navbar.jsx - Sign in → HTTP API client: calls login
frontend/src/pages/Login.jsx - Sign in → Auth state: sets session
frontend/src/pages/Login.jsx - Registration → HTTP API client: registers account
frontend/src/pages/Register.jsx - Student dashboard → HTTP API client: loads projects
frontend/src/pages/StudentDashboard.jsx - Project creation → HTTP API client: creates project
frontend/src/pages/CreateProject.jsx - Project detail → HTTP API client: manages project
frontend/src/pages/ProjectDetail.jsx - Teacher dashboard → HTTP API client: loads projects
frontend/src/pages/TeacherDashboard.jsx - HTTP API client → Account endpoints: HTTP account calls
frontend/src/services/api.js - HTTP API client → Student project endpoints: HTTP student calls
frontend/src/services/api.js - HTTP API client → Teacher endpoints: HTTP teacher calls
frontend/src/services/api.js - Flask app → Account endpoints: registers blueprint
backend/app.py - Flask app → Student project endpoints: registers blueprint
backend/app.py - Flask app → Teacher endpoints: registers blueprint
backend/app.py - Flask app → SQLite data: initializes schema
backend/app.py - Account endpoints → SQLite data: reads and writes
backend/routes/auth.py - Student project endpoints → SQLite data: reads and writes
backend/routes/student.py - Teacher endpoints → SQLite data: reads and writes
backend/routes/docent.py