How dev-tejasnb/student-data-collection works
The product is a FastAPI/MongoDB student-submission and administration system. Students submit records without logging in; staff and admins authenticate to manage records, view statistics, and export PDFs, while admins also manage users. The graph combines sampled backend call relationships with README-documented capabilities. Frontend-to-API wiring is not established by the sampled excerpts, so those edges are omitted.
Main entry points: main.py FastAPI application · database.py MongoDB connection and indexes · auth.py Login and user admin · dependencies.py Role access checks
Components 18
Web interface
- Web pages and scripts
templates - Browser assets
static
Application routing
- FastAPI application
app/main.py - Application settings
app/config.py
Authentication and access
- Login and user admin
app/routers/auth.py - Token and password security
app/auth/security.py - Role access checks
app/dependencies.py - User model
app/models/user.py - Authentication schemas
app/schemas/auth.py
Student records
- Public student submission
app/routers/public.py - Student management and stats
app/routers/admin_students.py - Student model
app/models/student.py - Response schemas
app/schemas/response.py - PDF export endpoints
app/routers/admin_pdf.py - PDF generation
app/services/pdf_service.py
Persistence and exports
- MongoDB connection and indexes
app/database.py - MongoDB
Other components
- Student or staff
Connections 30
- Student or staff → Web pages and scripts: uses
README.md - FastAPI application → Web pages and scripts: renders pages
app/main.py - FastAPI application → Browser assets: serves static files
app/main.py - FastAPI application → Public student submission: registers router
app/main.py - FastAPI application → Login and user admin: registers router
app/main.py - FastAPI application → Student management and stats: registers router
app/main.py - FastAPI application → PDF export endpoints: registers router
app/main.py - FastAPI application → MongoDB connection and indexes: opens and closes
app/main.py - FastAPI application → Application settings: loads settings
app/main.py - MongoDB connection and indexes → Application settings: reads connection settings
app/database.py - MongoDB connection and indexes → MongoDB: connects and indexes
app/database.py - Public student submission → MongoDB connection and indexes: gets database
app/routers/public.py - Student management and stats → MongoDB connection and indexes: gets database
app/routers/admin_students.py - Student management and stats → Student model: validates records
app/routers/admin_students.py - Student management and stats → Response schemas: returns responses
app/routers/admin_students.py - Public student submission → Student model: uses student model
app/routers/public.py - Public student submission → Response schemas: returns responses
app/routers/public.py - Login and user admin → MongoDB connection and indexes: gets database
app/routers/auth.py - Login and user admin → Token and password security: verifies and signs
app/routers/auth.py - Login and user admin → Role access checks: requires admin
app/routers/auth.py - Login and user admin → User model: uses user model
app/routers/auth.py - Login and user admin → Authentication schemas: uses auth schemas
app/routers/auth.py - Login and user admin → Response schemas: returns responses
app/routers/auth.py - Role access checks → Token and password security: decodes tokens
app/dependencies.py - Role access checks → MongoDB connection and indexes: loads user record
app/dependencies.py - Role access checks → User model: validates user
app/dependencies.py - Student management and stats → Role access checks: checks roles
app/routers/admin_students.py - PDF export endpoints → Role access checks: checks roles
app/routers/admin_pdf.py - PDF export endpoints → MongoDB connection and indexes: reads student records
app/routers/admin_pdf.py - PDF export endpoints → PDF generation: generates PDF
app/routers/admin_pdf.py