How aisha-jawed/disaster_management works
ResQNet coordinates disaster reports and victim rescue: citizens submit emergencies or incidents, while volunteers, NGOs, and administrators use role-specific portals to review needs, assign responders, and track status. The React app routes these workflows to an Express API, which applies access controls and priority scoring and persists records in MongoDB; Socket.IO broadcasts selected updates. The graph preserves the documented NGO, admin, dashboard, and registration capabilities, but several page and route implementations were not sampled, so their internal links are limited to documented routing or mounting evidence.
Main entry points: App.js Route application · server.js Express and Socket.IO · victims.js Victim workflows · incidents.js Incident workflows
Components 31
Web application
- Route application
Disaster/src/App.js - Navigation
Disaster/src/components/Navbar.jsx - Public dashboard
Disaster/src/pages/Dashboard.jsx - Emergency registration
Disaster/src/pages/SOS.jsx - Incident reports
Disaster/src/pages/Reports.jsx - Victim status
Disaster/src/pages/VictimStatus.jsx - Volunteer portal
Disaster/src/pages/Volunteer.jsx - NGO portal
Disaster/src/pages/NGO.jsx - Admin dashboard
Disaster/src/pages/Admin.jsx - Account registration
Disaster/src/pages/RegisterPage.jsx - HTTP client
Disaster/src/api/api.js - Victim API service
Disaster/src/api/victimService.js - Report feed hook
Disaster/src/hooks/useReportsMongo.js - Client priority scoring
Disaster/src/utils/priority.js
API and coordination
- Express and Socket.IO
backend/server.js - JWT and role checks
backend/middleware/auth.js - Priority scoring
backend/middleware/priority.js
Response workflows
- Victim workflows
backend/routes/victims.js - Incident workflows
backend/routes/incidents.js - Volunteer tasks
backend/routes/volunteers.js - NGO operations
backend/routes/ngos.js - Administration API
backend/routes/admin.js - Dashboard incident feed
backend/routes/dashboardIncidents.js
Persistence and scoring
- Victim records
backend/models/Victim.js - Incident records
backend/models/Incident.js - Volunteer records
backend/models/Volunteer.js - NGO records
backend/models/NGO.js - MongoDB
Other components
- Citizen
- Volunteer / NGO
- Administrator
Connections 39
- Route application → Navigation: renders
Disaster/src/App.js - Route application → Public dashboard: routes to
Disaster/src/App.js - Route application → Emergency registration: routes to
Disaster/src/App.js - Route application → Incident reports: routes to
Disaster/src/App.js - Route application → Victim status: routes to
Disaster/src/App.js - Route application → Volunteer portal: routes to
Disaster/src/App.js - Route application → NGO portal: routes to
Disaster/src/App.js - Route application → Admin dashboard: routes to
Disaster/src/App.js - Citizen → Emergency registration: submits request
- Citizen → Victim status: checks status
- Volunteer / NGO → Volunteer portal: uses portal
- Volunteer / NGO → NGO portal: uses portal
- Administrator → Admin dashboard: uses portal
- Admin dashboard → Victim API service: assigns volunteer
Disaster/src/pages/Admin.jsx - Victim API service → HTTP client: sends requests
Disaster/src/api/victimService.js - Victim API service → Victim workflows: calls victim endpoints
Disaster/src/api/victimService.js - Report feed hook → Client priority scoring: scores reports
Disaster/src/hooks/useReportsMongo.js - Express and Socket.IO → Victim workflows: mounts
backend/server.js - Express and Socket.IO → Incident workflows: mounts
backend/server.js - Express and Socket.IO → Volunteer tasks: mounts
backend/server.js - Express and Socket.IO → NGO operations: mounts
backend/server.js - Express and Socket.IO → Administration API: mounts
backend/server.js - Express and Socket.IO → Dashboard incident feed: mounts
backend/server.js - Express and Socket.IO → MongoDB: connects
backend/server.js - Victim workflows → Victim records: reads and writes
backend/routes/victims.js - Victim workflows → Priority scoring: calculates priority
backend/routes/victims.js - Victim workflows → JWT and role checks: guards routes
backend/routes/victims.js - Incident workflows → Incident records: reads and writes
backend/routes/incidents.js - Incident workflows → Priority scoring: calculates priority
backend/routes/incidents.js - Incident workflows → JWT and role checks: guards routes
backend/routes/incidents.js - Volunteer tasks → Victim records: loads rescue tasks
backend/routes/volunteers.js - Volunteer tasks → Volunteer records: reads and updates
backend/routes/volunteers.js - Volunteer tasks → JWT and role checks: guards routes
backend/routes/volunteers.js - NGO operations → NGO records: uses records
backend/routes/ngos.js - NGO operations → JWT and role checks: guards routes
backend/routes/ngos.js - Victim records → MongoDB: persists
README.md - Incident records → MongoDB: persists
README.md - Volunteer records → MongoDB: persists
README.md - NGO records → MongoDB: persists
README.md