How refilwe15/gbv-front-react works
No TO GBV is a GBV support and incident-reporting app. A user can trigger an SOS from the welcome screen, which sends location and message details to the backend for logging and optional SMS; the welcome screen also uploads voice recordings for analysis and alerting. Signed-in capabilities include account access, incident reporting and review, community chat, a chatbot, and admin incident management. The backend adds incident classification and status updates. Some frontend screens and backend routes were not excerpted, so their connections are not inferred beyond documented registration and the shown SOS calls.
Main entry points: App.js Navigation · main.py FastAPI App · incident_routes.py Incident Routes · database.py Database Access
Components 26
Mobile App
- Navigation
frontend/App.js - SOS Welcome
frontend/components/Greet.js - User Dashboard
frontend/components/Dashboard.js
Accounts
- Login
frontend/components/Login.js - Registration
frontend/components/Register.js - Auth Routes
backend/routes/auth_routes.py - User Routes
backend/routes/user_routes.py - Local Storage
frontend/utils/storage.js
Incident Reporting
- Incident Submission
frontend/components/ReportIncident.js - My Reports
frontend/components/Reports.js - Report Details
frontend/components/ReportDetails.js - Incident Map
frontend/components/ReportsMap.js - Incident Routes
backend/routes/incident_routes.py
Safety And Support
- Community Chat
frontend/components/CommunityChat.js - Chat Routes
backend/routes/chat_routes.py - Chatbot Screen
frontend/components/ChatbotScreen.js - Chatbot Route
backend/routes/chatbot_route.py - Emergency Contacts
frontend/components/ContactSetup.js - Admin Dashboard
frontend/components/AdminDashboard.js
Backend Services
- API Schemas
backend/schemas.py - Data Models
backend/models.py - Database Access
backend/database.py - FastAPI App
backend/main.py
Other components
- App User
- Twilio SMS
- Groq Classifier
Connections 36
- App User → Navigation: opens
frontend/App.js - Navigation → SOS Welcome: routes to
frontend/App.js - Navigation → Login: routes to
frontend/App.js - Navigation → Registration: routes to
frontend/App.js - Navigation → User Dashboard: routes to
frontend/App.js - Navigation → Incident Submission: routes to
frontend/App.js - Navigation → My Reports: routes to
frontend/App.js - Navigation → Report Details: routes to
frontend/App.js - Navigation → Incident Map: routes to
frontend/App.js - Navigation → Emergency Contacts: routes to
frontend/App.js - Navigation → Community Chat: routes to
frontend/App.js - Navigation → Chatbot Screen: routes to
frontend/App.js - Navigation → Admin Dashboard: routes to
frontend/App.js - App User → SOS Welcome: triggers SOS
- SOS Welcome → Local Storage: reads contact
frontend/components/Greet.js - SOS Welcome → FastAPI App: posts SOS
frontend/components/Greet.js - FastAPI App → Twilio SMS: sends alert
backend/main.py - FastAPI App → Database Access: creates tables
backend/main.py - FastAPI App → Auth Routes: registers router
backend/main.py - FastAPI App → User Routes: registers router
backend/main.py - FastAPI App → Incident Routes: registers router
backend/main.py - FastAPI App → Chat Routes: registers router
backend/main.py - FastAPI App → Chatbot Route: registers router
backend/main.py - Auth Routes → Database Access: queries users
backend/routes/auth_routes.py - User Routes → Database Access: queries users
backend/routes/user_routes.py - Incident Routes → Database Access: reads and writes
backend/routes/incident_routes.py - Chat Routes → Database Access: reads and writes
backend/routes/chat_routes.py - Incident Routes → Groq Classifier: classifies reports
backend/routes/incident_routes.py - Incident Routes → API Schemas: uses response model
backend/routes/incident_routes.py - Chat Routes → API Schemas: uses message models
backend/routes/chat_routes.py - Data Models → Database Access: inherits Base
backend/models.py - Incident Submission → Incident Routes: submits report
- My Reports → Incident Routes: loads reports
- Admin Dashboard → Incident Routes: manages incidents
- Community Chat → Chat Routes: uses chat
- Chatbot Screen → Chatbot Route: uses chatbot