docs(report): add section 5.3 draft assets

This commit is contained in:
2026-04-13 19:30:00 +01:00
parent 41fd7bb085
commit bd61735579
12 changed files with 1652 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# 5.3.1 Server Bootstrap and Runtime Setup
This diagram shows how the backend starts, mounts services, and becomes ready to handle API and realtime traffic.
```mermaid
sequenceDiagram
autonumber
participant Node as Node Runtime
participant Index as Backend/index.ts
participant App as Express App
participant Auth as Better Auth
participant Routes as Route Modules
participant MinIO as MinIO
participant RT as Socket.IO Gateway
participant Rec as Recordings Worker
participant Push as Push Worker
Node->>Index: start process
Index->>App: create express app
Index->>App: configure helmet + cors + JSON middleware
Index->>Auth: mount /api/auth/*
Index->>Routes: mount videos/admin/devices/links/streams/events/recordings/ops
Index->>MinIO: ensureMinioBucket()
MinIO-->>Index: bucket ready
Index->>RT: setupRealtimeGateway(server)
Index->>Rec: startRecordingsWorker()
Index->>Push: startPushWorker()
Index->>App: listen on configured port
```