How subhankarsahoopersonal/attendo-attendance-tracker works
Client-side “application layer” (modules)
• js/app.js — likely app bootstrap, routing/view switching, wiring modules
• js/dashboard.js — dashboard rendering + “today’s classes” interactions
• js/timetable.js — weekly schedule + extra classes CRUD UI
• js/chatbot.js — NLP-ish pattern matching, quick buttons, “bunk” queries
• js/calculator.js — attendance math engine (threshold, projections, recovery)
• js/auth.js — Google + email/password sign-in, auth-gating UI
• js/storage.js — *critical*: localStorage + Firestore sync layer (“StorageManager / FirestoreSync”)
• js/firebase-config.js — Firebase initialization (SDK config, app init)
Assets
• assets/ — logo, static resources
External systems (not in repo, but essential
• Firebase Auth
• Cloud Firestore
• (Potential) Firebase Cloud Messaging / browser Notifications API
README promises push notifications. Even if implementation is client-side timers + Notifications API (not true push), represent the notification mechanism explicitly because it’s a core feature.
• Netlify hosting (serving the static app)
FirestoreSync writes to Cloud Firestore
Read path (on login / app load)
UI modules render from storage state
• Serverless backend: Firebase Auth + Firestore replace a custom API server.
• Offline-first / cache-first: localStorage is the immediate source for responsiveness; Firestore becomes the synced canonical store after auth.
• Auth-gated data access: app UI hidden until auth; Firestore reads/writes scoped by user (Security Rules).
• Module-based separation: feature modules (dashboard/timetable/chatbot) separated from data + auth + domain math.
• Client-side “NLP” chatbot: pattern matching within chatbot.js (not an external LLM service).
Container view (recommended minimum)
• User
• Browser: AttenDO Web App
• Browser: localStorage
• Firebase Auth
• Cloud Firestore
• Notifications (Browser API / FCM)
• Netlify Hosting
Component view (inside Browser)
• app.js (bootstrap)
• firebase-config.js (init)
• auth.js
• storage.js (local + sync)
• calculator.js
• dashboard.js
• timetable.js
• chatbot.js
And then connect:
• UI modules → storage.js
• chatbot/dashboard → calculator.js
• auth.js → storage.js (enables cloud sync after login)
• storage.js ↔ localStorage / Firestore