From d897eefcdecd6dc3b2487f290b59a60009960630 Mon Sep 17 00:00:00 2001 From: Matiss Jurevics Date: Mon, 19 Jan 2026 10:45:00 +0000 Subject: [PATCH] feat(simulator): add web mobile-client simulator for camera and client roles --- Backend/index.ts | 1 + Backend/public/mobile-sim.html | 448 +++++++++++++++++++++++++++++++++ 2 files changed, 449 insertions(+) create mode 100644 Backend/public/mobile-sim.html diff --git a/Backend/index.ts b/Backend/index.ts index dbb3bca..499c238 100644 --- a/Backend/index.ts +++ b/Backend/index.ts @@ -31,6 +31,7 @@ app.use('/docs', swaggerUi.serve, swaggerUi.setup(openApiDocument)); app.all('/api/auth/*splat', toNodeHandler(auth)); app.use(express.json()); +app.use('/sim', express.static('public')); app.use('/videos', videosRoutes); app.use('/admin', adminRoutes); app.use('/devices', devicesRoutes); diff --git a/Backend/public/mobile-sim.html b/Backend/public/mobile-sim.html new file mode 100644 index 0000000..76676c8 --- /dev/null +++ b/Backend/public/mobile-sim.html @@ -0,0 +1,448 @@ + + + + + + Mobile Client Simulator + + + +
+

Mobile Client Simulator

+

+ Use this page like a phone app: register device role, connect socket with bearer device token, and run camera/client + actions. You must already be signed in via Better Auth in this browser session. +

+ +
+
+

Device Bootstrap

+ + + + + + +
+ + +
+ +
+ + +
+ + Socket disconnected +

+        
+ +
+

Client Actions

+ + +
+ + +
+ + +

+        
+ +
+

Camera Actions

+ + +

+        
+
+ +
+

Live Event Log

+

+      
+
+ + + + +