How manmathk31/child-tracker-app works
ChildTrack is a child-safety monitoring backend with browser and API workflows. Users authenticate and manage students, wearables, zones, and alert settings; incoming wearable telemetry is localized, persisted as location history, and evaluated for safety events, while dashboards expose current occupancy and alerts. The sampled code confirms application startup and route registration, authentication, MQTT-to-localization processing, SOS alert creation, and dashboard-to-alert queries. Other management routes and background alert monitoring are documented by module names and startup wiring, but their internal calls were not sampled.
Main entry points: main.py Application · session.py Database · proximity_service.py Telemetry localization · auth.py Authentication routes
Components 22
App entry
- Application
backend/app/main.py
Identity and access
- Authentication routes
backend/app/routers/auth.py - Authentication service
backend/app/services/auth_service.py - Token security
backend/app/core/security.py
Telemetry and safety
- MQTT ingestion
backend/app/services/mqtt_service.py - Telemetry localization
backend/app/services/proximity_service.py - Telemetry schemas
backend/app/schemas/location.py - Alert monitoring
backend/app/services/alert_service.py - Alert scheduler
backend/app/services/alert_scheduler.py - Testing tether
backend/app/services/testing_tether_service.py - Tracking routes
backend/app/routers/tracking.py
Monitoring and management
- Management routes
backend/app/routers - Device management
backend/app/services/device_service.py - Student management
backend/app/services/student_service.py - Zone management
backend/app/services/zone_service.py - Alert settings
backend/app/services/settings_service.py - Dashboard routes
backend/app/routers/dashboard.py - Dashboard aggregation
backend/app/services/dashboard_service.py - Alert routes
backend/app/routers/alerts.py
Domain data
- Database
backend/app/database/session.py - Domain models
backend/app/models
Other components
- School staff
Connections 25
- School staff → Authentication routes: signs in
backend/app/routers/auth.py - School staff → Management routes: manages records
- School staff → Dashboard routes: views status
- Application → Authentication routes: registers routes
backend/app/main.py - Application → Dashboard routes: registers routes
backend/app/main.py - Application → Management routes: registers routes
backend/app/main.py - Application → Alert routes: registers routes
backend/app/main.py - Application → Tracking routes: registers routes
backend/app/main.py - Application → Alert scheduler: starts monitor
backend/app/main.py - Application → MQTT ingestion: starts optionally
backend/app/main.py - Authentication routes → Authentication service: authenticates user
backend/app/routers/auth.py - Authentication routes → Token security: creates tokens
backend/app/routers/auth.py - Authentication service → Token security: checks passwords
backend/app/services/auth_service.py - Management routes → Device management: uses device logic
backend/app/routers/devices.py - MQTT ingestion → Telemetry localization: submits telemetry
backend/app/services/mqtt_service.py - MQTT ingestion → Testing tether: handles tether data
backend/app/services/mqtt_service.py - Telemetry localization → Alert monitoring: creates SOS alert
backend/app/services/proximity_service.py - Telemetry localization → Telemetry schemas: validates payload
backend/app/services/mqtt_service.py - Dashboard aggregation → Alert monitoring: queries active alerts
backend/app/services/dashboard_service.py - Alert monitoring → Alert settings: reads thresholds
backend/app/services/alert_service.py - Telemetry localization → Database: stores location records
- Authentication service → Database: reads and writes users
- Alert monitoring → Database: persists alerts
- Dashboard aggregation → Database: reads monitoring data
- Database → Domain models: stores domain entities