React + Python dashboard for telemetry health indicators: CSV upload, local CSV_DATA processing, and Google BigQuery. Built with Vite, TypeScript, React, shadcn-ui, Tailwind CSS, and a FastAPI backend.
Frontend (Node.js)
npm installBackend (Python)
cd backend
python -m venv .venv
# Windows PowerShell:
.\.venv\Scripts\activate
# macOS/Linux:
# source .venv/bin/activate
pip install -r requirements.txtTo use Load from BigQuery in the dashboard:
- Copy your Google Cloud service account JSON key to
backend/google-credentials.json, or - Set
GOOGLE_APPLICATION_CREDENTIALSto the path of your key file.
Terminal 1 – Backend
cd backend
.\.venv\Scripts\activate # Windows
uvicorn main:app --reload --host 127.0.0.1 --port 8000Terminal 2 – Frontend
npm run devOpen http://localhost:8080 (or the URL shown by Vite). Use the dashboard to upload a CSV, process a file from the CSV_DATA folder, or load from BigQuery (truck tables).
- Frontend: Node.js 18+, npm. All packages are in
package.json; runnpm install. - Backend: Python 3.10+. All packages are in
backend/requirements.txt; runpip install -r backend/requirements.txt.
src/– React app (context, components, charts, config)backend/– FastAPI app (main.py),requirements.txt, optionalgoogle-credentials.jsonCSV_DATA/– Optional folder for large CSVs (processed by the backend)