How hasanorkan156/grad2 works
This appears to be a diabetes-tracking backend with a Flutter mobile client, but the README provides no product detail and the tree includes no Dart application source. The sampled backend shows API setup, authentication, and a separate diabetes-risk prediction API; other major capabilities are indicated by router names and registration comments, but their internals and client wiring are not evidenced. The graph therefore preserves those feature modules without guessing their internal calls.
Main entry points: main.py API application · auth.py Authentication · session.py DB sessions · firebase.py Firebase verification
Components 17
Backend API
- API application
backend/main.py
Tracking Features
- Authentication
backend/routers/auth.py - Glucose records
backend/routers/glucose.py - Offline sync
backend/routers/sync.py - Reminders
backend/routers/reminders.py - Reports
backend/routers/reports.py - Risk route
backend/routers/risk.py
Identity and Data
- DB sessions
backend/db/session.py - Data models
backend/db/models.py - Token security
backend/core/security.py - Firebase verification
backend/core/firebase.py - Application database
Risk Modeling
- Model training
backend/ml_models/train_pipeline.py - Prediction API
backend/ml_models/app.py - Trained pipeline
Other components
- Mobile user
- Firebase
Connections 16
- Mobile user → API application: sends requests
- API application → Authentication: registers route
- API application → Glucose records: registers route
- API application → Offline sync: registers route
- API application → Reminders: registers route
- API application → Reports: registers route
- API application → Risk route: registers route
- API application → DB sessions: creates tables
- DB sessions → Application database: connects
- API application → Data models: creates tables from
- Authentication → DB sessions: queries users
- Authentication → Token security: hashes and issues tokens
- Authentication → Firebase verification: verifies login token
- Firebase verification → Firebase: verifies token
- Model training → Trained pipeline: saves pipeline
- Prediction API → Trained pipeline: loads pipeline