How pavithran244/tourist-safety works
Tourist Safety combines an Expo mobile app with a FastAPI service and SQLite persistence. The principal workflow is tourist location capture and submission, backend geofence evaluation and status/history updates, then monitoring of tourists and alerts; the documented SOS flow similarly exposes submitted alerts to an authorized monitoring interface. Registration and QR identification, geofence configuration, and the dashboard are distinct capabilities. Backend implementation is concentrated in one sampled file; mobile excerpts establish location submission, while some dashboard and QR details are documented only in the README.
Main entry points: main.py REST API · app/index.tsx Tourist app · dashboard.html Monitoring dashboard · app/index.tsx Safety monitor UI
Components 13
Tourist mobile app
- Tourist app
mobile/app/index.tsx - Safety monitor UI
mobile/src/app/index.tsx
Safety backend
- REST API
backend/main.py - Tourist registration
backend/main.py - QR identification
backend/main.py - Location updates
backend/main.py - Geofence evaluation
backend/main.py - SOS alerts
backend/main.py - Tourist and alert queries
backend/main.py - SQLite records
backend/main.py
Monitoring interface
- Monitoring dashboard
backend/dashboard.html
Other components
- Tourist
- Administrator
Connections 20
- Tourist → Tourist app: uses
README.md - Tourist app → REST API: submits locations
mobile/app/index.tsx - Tourist app → REST API: sends SOS
README.md - Tourist app → REST API: configures zones
- REST API → Location updates: routes updates
backend/main.py - REST API → Tourist registration: routes registration
README.md - REST API → QR identification: routes QR operations
backend/main.py - REST API → SOS alerts: routes SOS
backend/main.py - REST API → Tourist and alert queries: serves queries
README.md - Location updates → Geofence evaluation: checks coordinates
backend/main.py - Location updates → SQLite records: updates records
backend/main.py - Geofence evaluation → SQLite records: reads zone config
backend/main.py - SOS alerts → Geofence evaluation: checks coordinates
backend/main.py - SOS alerts → SQLite records: stores alerts
backend/main.py - Tourist registration → SQLite records: stores tourist
backend/main.py - QR identification → SQLite records: reads tourist
backend/main.py - Tourist and alert queries → SQLite records: reads records
backend/main.py - Administrator → Monitoring dashboard: monitors
README.md - Monitoring dashboard → REST API: retrieves alerts
README.md - Safety monitor UI → REST API: supports monitoring