# nahiyanzaded/eris architecture

> Architecture diagram of the GitHub repository nahiyanzaded/eris, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nahiyanzaded/eris
- Repository: https://github.com/nahiyanzaded/eris

## Overview

ERIS is presented as an emergency-response and information system, with a Django backend and multiple React user-interface areas. The visible user journey spans public incident reporting and incident tracking, through live incident views and role-specific responder dashboards, to administrative review. The sampled dashboards use local mock state, and the supplied evidence does not establish that they call the backend; backend connections are therefore not asserted. Several frontend areas are design variants rather than demonstrated integrated runtime flows.

Main entry points: [`eris-frontend/Public Landing Page Design/src/App.tsx`](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Public%20Landing%20Page%20Design/src/App.tsx) (Route application), [`core/views.py`](https://github.com/nahiyanzaded/eris/blob/main/core/views.py) (Request handlers), [`eris-frontend/Design Report Incident Page/src/App.tsx`](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Report%20Incident%20Page/src/App.tsx) (Incident reporting), [`core/auth_views.py`](https://github.com/nahiyanzaded/eris/blob/main/core/auth_views.py) (Auth handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Public navigation"]
  node_router["Route application<br/>[App.tsx]"]
  node_services["Emergency services<br/>[App.tsx]"]
  node_account["Account registration"]
  node_otp["OTP verification<br/>[App.tsx]"]
end

subgraph group_response["Incident response"]
  node_incident_report["Incident reporting<br/>[App.tsx]"]
  node_live_incidents["Live incidents<br/>[App.tsx]"]
  node_incident_tracking["Incident tracking<br/>[App.tsx]"]
end

subgraph group_operations["Operations dashboards"]
  node_staff_login["Staff login<br/>[App.tsx]"]
  node_super_admin["Admin review<br/>[App.tsx]"]
  node_fire_dashboard["Fire response<br/>[App.tsx]"]
  node_police_dashboard["Police response<br/>[App.tsx]"]
  node_ambulance_dashboard["Ambulance trips<br/>[App.tsx]"]
  node_hospital_dashboard["Hospital dashboard<br/>[App.tsx]"]
  node_rescue_dashboard["Rescue dashboard<br/>[App.tsx]"]
end

subgraph group_backend["Django backend"]
  node_django_routes["Backend routes<br/>[urls.py]"]
  node_auth_routes["Authentication routes<br/>[urls_auth.py]"]
  node_api_views["Request handlers<br/>[views.py]"]
  node_auth_views["Auth handlers<br/>[auth_views.py]"]
  node_serializers["Data serializers<br/>[serializers.py]"]
  node_domain_models["Domain models<br/>[models.py]"]
  node_sql_models["SQL models<br/>[sql_models.py]"]
end

node_public_user(("Public user"))

node_public_user -.->|"opens"| node_router
node_router -->|"routes to"| node_services
node_router -->|"routes to"| node_account
node_router -->|"routes to"| node_otp
node_router -->|"routes to"| node_incident_tracking
node_router -.->|"routes to"| node_incident_report
node_router -.->|"routes to"| node_live_incidents
node_router -.->|"routes to"| node_staff_login
node_router -.->|"routes to"| node_super_admin
node_router -.->|"routes to"| node_fire_dashboard
node_router -.->|"routes to"| node_hospital_dashboard
node_router -.->|"routes to"| node_rescue_dashboard
node_router -.->|"routes to"| node_police_dashboard
node_incident_report -.->|"submits incident"| node_live_incidents
node_django_routes -.->|"dispatches"| node_api_views
node_auth_routes -.->|"dispatches"| node_auth_views
node_api_views -.->|"uses"| node_serializers
node_api_views -.->|"accesses"| node_domain_models
node_auth_views -.->|"accesses"| node_domain_models

click node_router "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Public%20Landing%20Page%20Design/src/App.tsx"
click node_services "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Emergency%20Services%20Page/src/App.tsx"
click node_account "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Create%20Account%20Page%20Design/src/components/RegistrationForm.tsx"
click node_otp "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Verify%20OTP%20Page/src/App.tsx"
click node_incident_report "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Report%20Incident%20Page/src/App.tsx"
click node_live_incidents "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Live%20Incidents%20Page%20Design/src/App.tsx"
click node_incident_tracking "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Public%20Landing%20Page%20Design/src/App.tsx"
click node_staff_login "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Staff%20Login%20Page/src/App.tsx"
click node_super_admin "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Super%20Admin%20Dashboard%20Design_Correct/src/App.tsx"
click node_fire_dashboard "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Fire%20Service%20Dashboard/src/App.tsx"
click node_police_dashboard "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Police%20Dashboard%20Design/src/App.tsx"
click node_ambulance_dashboard "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Ambulance%20Dashboard%20Design/src/App.tsx"
click node_hospital_dashboard "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Hospital%20Dashboard%20UI%20Design%20Final/src/app/App.tsx"
click node_rescue_dashboard "https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Rescue%20Team%20Dashboard%20UI%20FINAL/src/app/App.tsx"
click node_django_routes "https://github.com/nahiyanzaded/eris/blob/main/core/urls.py"
click node_auth_routes "https://github.com/nahiyanzaded/eris/blob/main/core/urls_auth.py"
click node_api_views "https://github.com/nahiyanzaded/eris/blob/main/core/views.py"
click node_auth_views "https://github.com/nahiyanzaded/eris/blob/main/core/auth_views.py"
click node_serializers "https://github.com/nahiyanzaded/eris/blob/main/core/serializers.py"
click node_domain_models "https://github.com/nahiyanzaded/eris/blob/main/core/models.py"
click node_sql_models "https://github.com/nahiyanzaded/eris/blob/main/core/sql_models.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_router,node_services,node_account,node_otp,node_public_user toneBlue
class node_incident_report,node_live_incidents,node_incident_tracking toneAmber
class node_staff_login,node_super_admin,node_fire_dashboard,node_police_dashboard,node_ambulance_dashboard,node_hospital_dashboard,node_rescue_dashboard toneMint
class node_django_routes,node_auth_routes,node_api_views,node_auth_views,node_serializers,node_domain_models,node_sql_models toneRose
```

## Components

### Public navigation

- [Route application](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Public%20Landing%20Page%20Design/src/App.tsx): `eris-frontend/Public Landing Page Design/src/App.tsx`
- [Emergency services](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Emergency%20Services%20Page/src/App.tsx): `eris-frontend/Design Emergency Services Page/src/App.tsx`
- [Account registration](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Create%20Account%20Page%20Design/src/components/RegistrationForm.tsx): `eris-frontend/Create Account Page Design/src/components/RegistrationForm.tsx`
- [OTP verification](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Verify%20OTP%20Page/src/App.tsx): `eris-frontend/Verify OTP Page/src/App.tsx`

### Incident response

- [Incident reporting](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Report%20Incident%20Page/src/App.tsx): `eris-frontend/Design Report Incident Page/src/App.tsx`
- [Live incidents](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Live%20Incidents%20Page%20Design/src/App.tsx): `eris-frontend/Live Incidents Page Design/src/App.tsx`
- [Incident tracking](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Public%20Landing%20Page%20Design/src/App.tsx): `eris-frontend/Public Landing Page Design/src/App.tsx`

### Operations dashboards

- [Staff login](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Design%20Staff%20Login%20Page/src/App.tsx): `eris-frontend/Design Staff Login Page/src/App.tsx`
- [Admin review](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Super%20Admin%20Dashboard%20Design_Correct/src/App.tsx): `eris-frontend/Super Admin Dashboard Design_Correct/src/App.tsx`
- [Fire response](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Fire%20Service%20Dashboard/src/App.tsx): `eris-frontend/Fire Service Dashboard/src/App.tsx`
- [Police response](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Police%20Dashboard%20Design/src/App.tsx): `eris-frontend/Police Dashboard Design/src/App.tsx`
- [Ambulance trips](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Ambulance%20Dashboard%20Design/src/App.tsx): `eris-frontend/Ambulance Dashboard Design/src/App.tsx`
- [Hospital dashboard](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Hospital%20Dashboard%20UI%20Design%20Final/src/app/App.tsx): `eris-frontend/Hospital Dashboard UI Design Final/src/app/App.tsx`
- [Rescue dashboard](https://github.com/nahiyanzaded/eris/blob/main/eris-frontend/Rescue%20Team%20Dashboard%20UI%20FINAL/src/app/App.tsx): `eris-frontend/Rescue Team Dashboard UI FINAL/src/app/App.tsx`

### Django backend

- [Backend routes](https://github.com/nahiyanzaded/eris/blob/main/core/urls.py): `core/urls.py`
- [Authentication routes](https://github.com/nahiyanzaded/eris/blob/main/core/urls_auth.py): `core/urls_auth.py`
- [Request handlers](https://github.com/nahiyanzaded/eris/blob/main/core/views.py): `core/views.py`
- [Auth handlers](https://github.com/nahiyanzaded/eris/blob/main/core/auth_views.py): `core/auth_views.py`
- [Data serializers](https://github.com/nahiyanzaded/eris/blob/main/core/serializers.py): `core/serializers.py`
- [Domain models](https://github.com/nahiyanzaded/eris/blob/main/core/models.py): `core/models.py`
- [SQL models](https://github.com/nahiyanzaded/eris/blob/main/core/sql_models.py): `core/sql_models.py`

### Other components

- **Public user**

## Connections

- Public user → Route application: opens
- Route application → Emergency services: routes to (evidence: `eris-frontend/Public Landing Page Design/src/App.tsx`)
- Route application → Account registration: routes to (evidence: `eris-frontend/Public Landing Page Design/src/App.tsx`)
- Route application → OTP verification: routes to (evidence: `eris-frontend/Public Landing Page Design/src/App.tsx`)
- Route application → Incident tracking: routes to (evidence: `eris-frontend/Public Landing Page Design/src/App.tsx`)
- Route application → Incident reporting: routes to
- Route application → Live incidents: routes to
- Route application → Staff login: routes to
- Route application → Admin review: routes to
- Route application → Fire response: routes to
- Route application → Hospital dashboard: routes to
- Route application → Rescue dashboard: routes to
- Route application → Police response: routes to
- Incident reporting → Live incidents: submits incident
- Backend routes → Request handlers: dispatches
- Authentication routes → Auth handlers: dispatches
- Request handlers → Data serializers: uses
- Request handlers → Domain models: accesses
- Auth handlers → Domain models: accesses
