How chiranthan248/saferide works
SafeRide is a Django safety platform for commuters and guardians. A commuter registers or starts a ride, shares GPS updates, and can submit an incident or trigger SOS; guardians review and resolve alerts. Ride and incident records also feed hazard-zone clustering and incident-probability prediction, exposed through analytics endpoints and dashboards. The graph includes the documented REST API, trusted contacts, trip history, and fake-call feature. Some UI and routing links are based on README descriptions; unsampled implementation details are not inferred.
Main entry points: urls.py Application routing · user Commuter screens · user/views.py Ride and SOS flows · admin_app/views.py Alert management
Components 16
Commuter safety
- Commuter screens
templates/user - Ride and SOS flows
user/views.py - Trips and contacts
user/views.py - Incident reporting
user/views.py
Guardian response
- Guardian dashboard
templates/admin_app - Alert management
admin_app/views.py - Guardian records
admin_app/models.py
Safety analytics
- Analytics endpoints
analytics_app/api.py - ML analytics
analytics_app/services.py
Shared data and API
- Ride and incident API
user/api.py - API serializers
user/serializers.py - Commuter safety records
user/models.py - Application routing
urls.py
Other components
- Commuter
- Guardian
- Web client
Connections 21
- Commuter → Commuter screens: uses
README.md - Commuter screens → Ride and SOS flows: submits actions
- Ride and SOS flows → Commuter safety records: creates and reads
user/views.py - Ride and SOS flows → Trips and contacts: handles
user/views.py - Ride and SOS flows → Incident reporting: records reports
user/views.py - Guardian → Guardian dashboard: uses
README.md - Guardian dashboard → Alert management: submits actions
- Alert management → Commuter safety records: reads and updates
admin_app/views.py - Alert management → Guardian records: reads and updates
admin_app/views.py - Web client → Application routing: requests
urls.py - Application routing → Ride and incident API: routes API
urls.py - Application routing → Analytics endpoints: routes analytics
urls.py - Application routing → Ride and SOS flows: routes pages
urls.py - Application routing → Alert management: routes pages
urls.py - Ride and incident API → Commuter safety records: queries and saves
user/api.py - Ride and incident API → API serializers: serializes
user/api.py - Analytics endpoints → ML analytics: requests predictions
analytics_app/api.py - ML analytics → Commuter safety records: reads rides and incidents
analytics_app/services.py - Commuter screens → Analytics endpoints: requests risk data
README.md - Guardian dashboard → Analytics endpoints: requests hazard data
README.md - Commuter screens → Commuter screens: offers fake call
README.md