How raytheman101/tv-blog-website works
This is a responsive digital-signage website: an administrator manages content and TV connections, while remote viewers display synchronized media. The graph separates account access, content management, connection/state APIs, and viewer playback. The sampled files show account requests, session persistence, and viewer heartbeats; several dashboard-to-API links and slideshow interactions are not visible in the excerpts, so those relationships are omitted rather than inferred.
Main entry points: tv-management.js TV management dashboard · tv-viewer.js Viewer playback · database_setup.sql TV session database · script.js Login and signup UI
Components 18
Accounts
- Login and signup UI
tvweb/script.js - Account endpoints
tvweb/login.php - Registration endpoint
tvweb/signup.php - User database
tvweb/bbccc_tv_account.sql
Content management
- TV management dashboard
tvweb/tv-management.js - Media upload and listing
tvweb - Slideshow operations
tvweb - Content session cleanup
tvweb/delete-from-sessions.php
TV connections and sync
- Connection-code endpoint
tvweb/connect.php - Viewer code lookup
tvweb/get-viewer-code.php - Session state updates
tvweb/sync.php - Session state lookup
tvweb/get-sync.php - Viewer heartbeat
tvweb/viewer-heartbeat.php - TV session database
tvweb/database_setup.sql - Heartbeat file
tvweb/viewer-heartbeats.json
Viewer playback
- Viewer playback
tvweb/tv-viewer.js
Other components
- Administrator
- TV viewer
Connections 21
- Administrator → Login and signup UI: uses
tvweb/script.js - Login and signup UI → Account endpoints: submits credentials
tvweb/script.js - Login and signup UI → Registration endpoint: creates account
tvweb/script.js - Account endpoints → User database: queries users
tvweb/login.php - Registration endpoint → User database: inserts users
tvweb/signup.php - Administrator → TV management dashboard: manages TVs
tvweb/tv-management.js - TV management dashboard → Media upload and listing: uploads media
- TV management dashboard → Slideshow operations: manages slideshows
- TV management dashboard → Content session cleanup: clears deleted media
- TV viewer → Viewer playback: views signage
tvweb/tv-viewer.js - Viewer playback → Viewer heartbeat: sends heartbeat
tvweb/tv-viewer.js - Connection-code endpoint → Heartbeat file: checks activity
tvweb/connect.php - Connection-code endpoint → TV session database: creates or refreshes sessions
tvweb/connect.php - Session state updates → TV session database: updates state
tvweb/sync.php - Session state lookup → TV session database: reads state
tvweb/get-sync.php - Viewer heartbeat → Heartbeat file: writes heartbeat
tvweb/viewer-heartbeat.php - Viewer heartbeat → TV session database: deletes closed session
tvweb/viewer-heartbeat.php - Viewer playback → Viewer code lookup: requests connection code
- Viewer playback → Session state lookup: polls playback state
- TV management dashboard → Connection-code endpoint: requests connection
- TV management dashboard → Session state updates: updates playback state