How luisacp27/expense-tracker works
Project Type and Purpose
• This is a Progressive Web App (PWA) for personal finance management.
• It runs entirely in the browser (HTML/CSS/JS), provides offline-first functionality via localStorage + service worker, and syncs data to Firebase (Auth + Firestore).
File Structure Analysis
• Top‐level assets:
• HTML pages (index.html, settings.html, pin.html, etc.) – the PWA’s UI screens.
• css/ – global and per-page styles (styles.css).
• js/ – modular JavaScript sources:
– app.js (main UI orchestrator)
– storage-adapter.js (hybrid storage layer)
– storage.js (local wrapper)
– firebase-*.js (config, Auth, Firestore, debug)
– charts.js (Chart.js integration)
– security.js, settings.js, language.js, themes.js (cross-cutting features)
• manifest.json & service-worker.js – PWA configuration and offline caching.
• firebase.json, firestore.* – Firebase build/deploy and security rules.
• ARCHITECTURE.md – higher-level design.
README Insights
Frontend PWA → Storage Adapter → {Firestore ←→ localStorage}
• Key patterns: hybrid (online/offline) storage, modular JavaScript, event-driven updates, security via Web Crypto.