01-Product / 01.01.Project-Overview01.01.Project Overview
01.01. Project Overview
Introduction
Car Pulse Tracker (CPT) is a full-stack platform designed to generate comprehensive, verified PDF reports for Tesla vehicles. It leverages the Tesla Fleet API to acquire real-time battery health, charging history, and service data.
High-Level Architecture
The system is built as a modular monolith following a Connect-First (v2) session-based architecture.
- Frontend (WUI): Vue 3 (TypeScript) SPA using Pinia for state management and Tailwind CSS for styling.
- Backend (API): FastAPI (Python) handles OAuth orchestration, vehicle data acquisition, and report generation.
- Utility (UTL): Docker and Make-based orchestration for local development and CI/CD.
- Infrastructure (INF): Terraform-managed GCP resources (Cloud Run, GCS, Secret Manager, Memorystore).
- Configuration (CNF): YAML-based multi-environment configuration pipeline.
Documentation Map
Key System Flows
1. Data Acquisition (v2)
- User connects Tesla via OAuth (managed by
cpt-api).
- API fetches vehicle inventory and creates an
OrderSession in Redis.
- User selects a report package and vehicle(s).
- API triggers background data acquisition and normalization into a
VehicleSnapshot.
2. Proactive PDF Generation
- Upon successful fetch,
cpt-api triggers pdf-api (Puppeteer).
pdf-api renders the report in a clean "print-view" route.
- PDF is uploaded to GCS and a download hook is registered in Redis.
- User clicks download and receives the pre-generated PDF.
Security & Privacy
- Statelessness: No PII stored in persistent databases; everything is transient in Redis with strict TTLs.
- Isolation: Each request is scoped to a high-entropy
session_id.
- Cleanup: Background tasks ensure sensitive data (PDFs, traces) are deleted shortly after use.
Maintained by BNC CPT Team