1.7 KiB
1.7 KiB
VitFit V2 — Planning Index
This folder contains all planning documentation for the V2 redesign.
| Document | What it covers |
|---|---|
| REQUIREMENTS.md | What V2 must do — functional features, stability, security, and platform constraints |
| ARCHITECTURE.md | How to build it — stack decisions, module system, real-time strategy, dependency plan |
| DISPLAY_DESIGN.md | iPad + Safari + AirPlay + TV specifics — PWA config, 24h session stability, typography, Safari quirks |
| MIGRATION_PLAN.md | How to move V1 data to V2 without loss — Sequelize migration strategy, rollback plan |
Key Decisions at a Glance
- Stack: Express.js + SQLite (Sequelize with migrations) + Socket.io + Nginx
- Frontend: Vanilla JS + shared CSS (no heavy framework)
- Timer: Server-side state machine via Socket.io — drift-free, survives reconnects
- Display: PWA (
apple-mobile-web-app-capable) to remove Safari chrome from TV mirror - Auth: JWT 7-day TTL + silent background refresh, admin-only user creation
- Modules: Drop-in feature folders — add/remove without touching core
- Process: PM2 with memory limit restart, auto-start on server reboot
- Server access: PuTTY (SSH) + WinSCP (SFTP) only — no other access method
- Video files: Stay at
/home/ubuntu/site/uploads/— served via authenticated streaming route with Range support (required by Safari), never as static files - Storage monitoring: Admin panel shows disk usage + uploads size; upload endpoint blocks new files when disk is low
V1 Reference
The full V1 code walkthrough is at the repo root: CODEBASE_REFERENCE.md