How dakshinamoorthyaids/secure-digital-evidence-management-system works
This is a secure digital-evidence management system: users sign in, manage cases and evidence, upload files, check integrity, and review custody history or reports. The frontend App routes users to role dashboards and feature views; those views communicate with a FastAPI backend that applies security logic and persists user, case, evidence, custody, and audit records. The source excerpts show only portions of the backend and some frontend calls, so undocumented API-to-backend links are marked unverified rather than asserted.
Main entry points: App.tsx App and routing · api.ts API endpoint config · InvestigatorDashboard.tsx Investigator dashboard · ForensicOfficerDashboard.tsx Officer dashboard
Components 20
Web application
- App and routing
frontend/src/App.tsx - Investigator dashboard
frontend/src/InvestigatorDashboard.tsx - Officer dashboard
frontend/src/ForensicOfficerDashboard.tsx - Viewer dashboard
frontend/src/ViewerDashboard.tsx - Dashboard
frontend/src/Dashboard.tsx - Settings
frontend/src/Settings.tsx
Evidence workflows
- Evidence records
frontend/src/Evidence.tsx - Evidence upload
frontend/src/UploadEvidence.tsx - Integrity verification
frontend/src/Verification.tsx - Custody history
frontend/src/ChainOfCustody.tsx - Audit logs
frontend/src/AuditLogs.tsx - Report generation
frontend/src/GenerateReport.tsx
Backend services
- API endpoint config
frontend/src/api.ts - FastAPI service
backend/main.py - Password and roles
backend/auth.py - Evidence security
backend/security.py
Persistence and records
- Domain models
backend/models.py - Database sessions
backend/database.py - Relational database
Other components
- User
Connections 35
- User → App and routing: uses
- App and routing → Investigator dashboard: routes to
frontend/src/App.tsx - App and routing → Officer dashboard: routes to
frontend/src/App.tsx - App and routing → Viewer dashboard: routes to
frontend/src/App.tsx - App and routing → Dashboard: routes to
frontend/src/App.tsx - App and routing → Evidence records: routes to
frontend/src/App.tsx - App and routing → Evidence upload: routes to
frontend/src/App.tsx - App and routing → Integrity verification: routes to
frontend/src/App.tsx - App and routing → Custody history: routes to
frontend/src/App.tsx - App and routing → Audit logs: routes to
frontend/src/App.tsx - App and routing → Settings: routes to
frontend/src/App.tsx - App and routing → Report generation: routes to
frontend/src/App.tsx - Investigator dashboard → Evidence records: uses
frontend/src/InvestigatorDashboard.tsx - Investigator dashboard → Evidence upload: uses
frontend/src/InvestigatorDashboard.tsx - Investigator dashboard → Integrity verification: uses
frontend/src/InvestigatorDashboard.tsx - Investigator dashboard → Custody history: uses
frontend/src/InvestigatorDashboard.tsx - Officer dashboard → Evidence records: uses
frontend/src/ForensicOfficerDashboard.tsx - Officer dashboard → Integrity verification: uses
frontend/src/ForensicOfficerDashboard.tsx - Officer dashboard → Custody history: uses
frontend/src/ForensicOfficerDashboard.tsx - Officer dashboard → Report generation: uses
frontend/src/ForensicOfficerDashboard.tsx - Dashboard → Evidence upload: uses
frontend/src/Dashboard.tsx - App and routing → API endpoint config: configures API
frontend/src/App.tsx - Evidence records → API endpoint config: requests data
frontend/src/Evidence.tsx - Evidence upload → API endpoint config: requests upload
frontend/src/UploadEvidence.tsx - Integrity verification → API endpoint config: requests checks
frontend/src/Verification.tsx - Custody history → API endpoint config: requests history
frontend/src/ChainOfCustody.tsx - Audit logs → API endpoint config: requests logs
frontend/src/AuditLogs.tsx - Report generation → API endpoint config: requests reports
frontend/src/GenerateReport.tsx - API endpoint config → FastAPI service: calls API
- FastAPI service → Password and roles: uses credentials
backend/main.py - FastAPI service → Evidence security: uses security
backend/main.py - FastAPI service → Domain models: queries records
backend/main.py - FastAPI service → Database sessions: opens sessions
backend/main.py - Domain models → Database sessions: uses base
backend/models.py - Database sessions → Relational database: connects
backend/database.py