7d55580d87
Split the 5,441-line index.js into an 86-line bootstrap, thin domain
route modules, shared lib/ helpers, and a repo/ layer that isolates the
DEV_MOCK branches (repo/*.mock.js). Repo methods return {statusCode, body};
routes are one-line wrappers. Pin search_path to "transit.bus" and
document the /bus/ prefix with legacy root aliases (Deprecation header).
Parity verified: 57/57 byte-identical on the stub differential harness
plus 24/24 live read-only responses vs the original against real
PostgreSQL. The only intentional behavior change: mock reorder/delete
bus-line endpoints no longer require a live DB (previously 500 in
DEV_MOCK=1 without PG). DEV_MOCK gate and node --check clean.
Transit Project Documentation Hub
This directory is the consolidated documentation hub for the Transit Project. All system documentation, operational guides, and service specifications live here inside monitoring_ui/docs/.
Core Guides
- Project Guide: Architecture, local development, environment variables, Docker, deployment, database prerequisites, and troubleshooting.
- Monitoring UI Guide: Complete operations manual for
monitoring_ui. - Root Readme: Original main overview page.
- Getting Started Guide: 5-minute setup & deployment quickstart.
- Deployment Guide: Production deployment instructions & DB setup.
- CI/CD & Portainer Guide: Automation, registry, and Portainer stack deployment.
- Admin Deployment Summary: Deployment status and deliverable notes.
- Docker Notes: Docker and Docker Compose workflows.
- Domains Overview: Domain mappings and endpoint list.
- Security & Private Files: Security practices & credential safety rules.
- Developer Handoff: Engineering handoff notes.
- Azure Project Plan: Azure migration and project planning notes.