How tog10safety/towems works
TOWEMS is an operational management system with a React web client and Django backend, supporting mission planning, command structure, personnel, resources, mapping, safety, and risk workflows. A user enters through the authenticated application, works in a domain screen such as mission planning or inventory, and submits requests through the shared API client to backend endpoints and domain services that operate on legacy and additive database tables. The excerpts establish frontend routing, authentication, API behavior, and selected service/model relationships; many domain screens and backend routes are listed but not sampled, so their links are omitted or marked unverified.
Main entry points: ops/services.py Operations Services · App.jsx Application Router · roles.py Access Policy · command/services.py Command Services
Components 22
Web Client
- Application Router
toms_frontend/src/App.jsx - Authentication Context
toms_frontend/src/auth/AuthContext.jsx - API Client
toms_frontend/src/api/client.js - Mission Planning
toms_frontend/src/pages/MissionFormPage.jsx - Inventory Screen
toms_frontend/src/pages/InventoryPage.jsx - Other Domain Screens
toms_frontend/src/pages
Identity and Command
- Accounts and Profiles
toms_backend/apps/accounts - Command Services
toms_backend/apps/command/services.py - Command Records
toms_backend/apps/command/models.py - Access Policy
toms_backend/apps/core/roles.py - Request Permissions
toms_backend/apps/core/permissions.py - Data Scoping
toms_backend/apps/core/scoping.py
Operations
- Operations Services
toms_backend/apps/ops/services.py - Operations Records
toms_backend/apps/ops/models.py - Notifications
toms_backend/apps/ops/notifications.py - AOR Handoff
toms_backend/apps/ops/aor_handoff.py - Risk and Safety
toms_backend/apps/ops - Air and Mobility
toms_backend/apps/ops
Persistence
- Legacy Records
toms_backend/apps/legacy/models.py - Personnel Records
toms_backend/apps/accounts/models.py
Other components
- Operator
- Django API
toms_backend/toms/urls.py
Connections 28
- Operator → Application Router: uses
toms_frontend/src/App.jsx - Application Router → Mission Planning: routes to
toms_frontend/src/App.jsx - Application Router → Inventory Screen: routes to
toms_frontend/src/App.jsx - Application Router → Other Domain Screens: routes to
toms_frontend/src/App.jsx - Authentication Context → API Client: requests through
toms_frontend/src/auth/AuthContext.jsx - Application Router → Authentication Context: provides context
toms_frontend/src/main.jsx - Mission Planning → API Client: calls
toms_frontend/src/pages/MissionFormPage.jsx - Inventory Screen → API Client: calls
toms_frontend/src/pages/InventoryPage.jsx - API Client → Django API: sends HTTP requests
- Command Services → Command Records: writes
toms_backend/apps/command/services.py - Command Services → Legacy Records: reads
toms_backend/apps/command/services.py - Command Services → Personnel Records: reads
toms_backend/apps/command/services.py - Command Services → Notifications: uses
toms_backend/apps/command/services.py - Operations Services → Operations Records: reads and writes
toms_backend/apps/ops/services.py - Operations Services → AOR Handoff: uses
toms_backend/apps/ops/services.py - Operations Services → Access Policy: checks capabilities
toms_backend/apps/ops/services.py - Operations Services → Request Permissions: uses
toms_backend/apps/ops/services.py - Operations Services → Data Scoping: uses
toms_backend/apps/ops/services.py - Notifications → Operations Records: reads
toms_backend/apps/ops/notifications.py - Access Policy → Legacy Records: reads hierarchy
toms_backend/apps/core/roles.py - Access Policy → Command Records: reads appointments
toms_backend/apps/core/roles.py - Access Policy → Personnel Records: uses ownership
toms_backend/apps/core/roles.py - Request Permissions → Access Policy: uses policy
toms_backend/apps/core/permissions.py - Data Scoping → Request Permissions: uses
toms_backend/apps/core/scoping.py - Data Scoping → Legacy Records: scopes by
toms_backend/apps/core/scoping.py - Accounts and Profiles → Personnel Records: manages
toms_backend/apps/accounts/profile.py - Risk and Safety → Operations Records: uses records
toms_backend/apps/ops/services.py - Air and Mobility → Operations Records: uses records
toms_backend/apps/ops/services.py