How poojitha-s-004/reliefops works
ReliefOps pairs a Django/GeoDjango API with a React coordination console. The user journey is sign-in, view operational data, report incidents or manage assistance/resources, then review coordinator-facing duplicate suggestions; most frontend workflows use simulated browser data, while authentication is integrated with the backend. Backend capabilities include domain workflows, PostGIS proximity queries, and review-only AI similarity suggestions. The sampled sources show frontend routing, auth/session handling, data-service calls, and matching orchestration. Other API and workflow links are documented at a capability level rather than verified in sampled view code.
Main entry points: api Django API surface · AppRoutes.jsx Application routes · orchestration.py Match orchestration · DataContext.jsx Workflow data state
Components 27
Coordination console
- Application routes
frontend/src/routes/AppRoutes.jsx - Operational dashboard
frontend/src/pages/DashboardPage.jsx - Incident reporting and maps
frontend/src/pages/ReportIncidentPage.jsx - Assistance workflows
frontend/src/pages/AssistancePage.jsx - Resource console
frontend/src/pages/ResourcesPage.jsx - Duplicate review
frontend/src/pages/DuplicateReviewPage.jsx - Workflow data state
frontend/src/contexts/DataContext.jsx - Simulated workflow data
frontend/src/data/mockData.js - Domain API services
frontend/src/services
Identity
- Authentication state
frontend/src/contexts/AuthContext.jsx - Auth API service
frontend/src/services/authService.js - HTTP client and refresh
frontend/src/services/apiClient.js - Browser session storage
frontend/src/services/tokenStorage.js
Backend operations
- Django API surface
backend/api - Accounts and JWT
backend/accounts/models.py - Geospatial queries
backend/common/geospatial.py
Similarity matching
- Match orchestration
backend/matching/orchestration.py - Incident candidates
backend/matching/incidents.py - Need candidates
backend/matching/needs.py - Candidate scoring
backend/matching/scoring.py - Semantic embeddings
backend/matching/embeddings.py - Suggestion persistence
backend/matching/persistence.py
Response domains
- Incident workflows
backend/incidents/workflows.py - Assistance fulfillment
backend/assistance/fulfillment.py - Coordination records
backend/coordination/models.py - Resource workflows
backend/resources/workflows.py
Other components
- Coordinator or reporter
Connections 31
- Coordinator or reporter → Application routes: opens workspace
frontend/src/routes/AppRoutes.jsx - Application routes → Operational dashboard: routes to
frontend/src/routes/AppRoutes.jsx - Application routes → Incident reporting and maps: routes to
frontend/src/routes/AppRoutes.jsx - Application routes → Assistance workflows: routes to
frontend/src/routes/AppRoutes.jsx - Application routes → Resource console: routes to
frontend/src/routes/AppRoutes.jsx - Application routes → Duplicate review: routes to
frontend/src/routes/AppRoutes.jsx - Coordinator or reporter → Authentication state: signs in
README.md - Authentication state → Auth API service: calls
frontend/src/contexts/AuthContext.jsx - Auth API service → HTTP client and refresh: sends auth requests
frontend/src/services/authService.js - Auth API service → Browser session storage: reads and saves session
frontend/src/services/authService.js - HTTP client and refresh → Browser session storage: reads and refreshes tokens
frontend/src/services/apiClient.js - Workflow data state → Simulated workflow data: loads seed data
frontend/src/contexts/DataContext.jsx - Workflow data state → Domain API services: fetches workflow data
frontend/src/contexts/DataContext.jsx - Incident reporting and maps → Workflow data state: submits reports
- Assistance workflows → Workflow data state: uses workflow data
- Resource console → Workflow data state: uses workflow data
- Duplicate review → Workflow data state: updates review state
frontend/src/pages/DuplicateReviewPage.jsx - Django API surface → Accounts and JWT: provides JWT auth
README.md - Django API surface → Incident workflows: exposes incident workflows
README.md - Django API surface → Assistance fulfillment: exposes domain workflows
README.md - Django API surface → Coordination records: exposes domain workflows
README.md - Django API surface → Resource workflows: exposes domain workflows
README.md - Django API surface → Geospatial queries: provides proximity queries
README.md - Django API surface → Match orchestration: offers similarity suggestions
README.md - Match orchestration → Incident candidates: generates candidates
backend/matching/orchestration.py - Match orchestration → Semantic embeddings: gets embedder
backend/matching/orchestration.py - Match orchestration → Geospatial queries: validates radius
backend/matching/orchestration.py - Match orchestration → Need candidates: generates candidates
backend/matching/orchestration.py - Incident candidates → Candidate scoring: uses scoring
backend/matching/incidents.py - Need candidates → Candidate scoring: uses scoring
backend/matching/needs.py - Match orchestration → Suggestion persistence: persists suggestions
backend/matching/orchestration.py