How daddypigpapa/emergency_callup works
This is a browser-based emergency personnel mobilization and location-tracking system. Administrators prepare rosters, mission areas and team plans, open an incident, notify responders by SMS, monitor GPS progress and arrival, change assignments, then close the incident and export attendance records. Field personnel log in, view their assignment and map, and share location during an active incident. The graph reflects README-documented workflows and the sampled server wiring; several domain implementations were not excerpted, so uncertain internal links are omitted.
Main entry points: server.go HTTP server · admin_incident.go Incident operations · store.go Incident and assignments · f.js Field screen
Components 23
Web clients
- Admin console
web/a/a.js - Setup screens
web/a/setup.js - Field screen
web/f/f.js - Field map
web/shared/map.js - Grid utilities
web/shared/grid.js
HTTP and access
- HTTP server
internal/httpapi/server.go - Admin authentication
internal/httpapi/admin_auth.go - Member authentication
internal/httpapi/member_auth.go
Incident operations
- Roster management
internal/roster/store.go - Mission areas
internal/area/store.go - Team plans
internal/incident/plan.go - Incident operations
internal/httpapi/admin_incident.go - Incident and assignments
internal/incident/store.go - Location and arrival
internal/tracker/tracker.go - SMS preparation
internal/sms/service.go - Incident reports
internal/httpapi/admin_report.go
Persistence and integrations
- SQLite database
internal/store/store.go - Audit log
internal/audit/audit.go - Database backup
internal/store/backup.go - SMS provider
internal/sms/http_provider.go - VWorld geocoding
internal/geo/vworld.go
Other components
- Administrator
- Field responder
Connections 27
- Administrator → Admin console: uses
- Field responder → Field screen: uses
- Admin console → HTTP server: requests
- Setup screens → HTTP server: calls setup APIs
web/a/setup.js - Field screen → HTTP server: calls field APIs
web/f/f.js - Field screen → Field map: renders map
web/f/f.js - Field map → Grid utilities: uses grid logic
web/shared/map.js - HTTP server → Admin authentication: routes admin login
internal/httpapi/server.go - HTTP server → Member authentication: routes member login
internal/httpapi/server.go - HTTP server → Roster management: constructs store
internal/httpapi/server.go - HTTP server → Mission areas: constructs store
internal/httpapi/server.go - HTTP server → Team plans: constructs store
internal/httpapi/server.go - HTTP server → Incident and assignments: constructs store
internal/httpapi/server.go - Administrator → Setup screens: maintains setup
- Administrator → Incident operations: opens and manages
- Incident operations → Incident and assignments: creates assignments
- Incident operations → Location and arrival: monitors progress
- Field responder → Location and arrival: shares GPS
- Incident operations → SMS preparation: prepares messages
- SMS preparation → SMS provider: sends messages
internal/sms/service.go - Administrator → Incident reports: downloads records
- HTTP server → SQLite database: wires persistence
internal/httpapi/server.go - HTTP server → VWorld geocoding: serves geocoding
internal/httpapi/server.go - Incident and assignments → Mission areas: reads area plans
internal/incident/store.go - Incident and assignments → Team plans: loads team plan
internal/incident/store.go - Incident operations → Audit log: records sensitive actions
- HTTP server → Database backup: backs up on closure
internal/httpapi/server.go