How charan610/apy works
APY is a shared attendance ledger and bunk-forecasting product with web and Android clients backed by a FastAPI API and shared database. Students authenticate, choose or build a section timetable, record attendance, and view summaries and forecasts; administrators verify students and reset PINs. Notifications and platform-session tracking are additional capabilities. The web client, Android client, and backend have separate implementation paths; README documents their shared live API/database. Some route and notification links are based on documented capabilities where implementation was not sampled.
Main entry points: main.py API application · src/App.jsx Web app shell · src/App.jsx Android app shell · database.py Shared database
Components 21
Student clients
- Web app shell
frontend/src/App.jsx - Web API client
frontend/src/api.js - Attendance views
frontend/src/components/TodayTab.jsx - Forecast views
frontend/src/components/ForecastTab.jsx - Timetable views
frontend/src/components/TimetableTab.jsx - Settings
frontend/src/components/SettingsModal.jsx - Admin panel
frontend/src/components/AdminModal.jsx - Android app shell
apy-android/src/App.jsx - Android API client
apy-android/src/api.js - Native storage
apy-android/src/nativeStorage.js
API and domain
- Attendance and forecast
api/routers/attendance_routes.py - Registration and login
api/routers/auth_routes.py - Section timetables
api/routers/section_routes.py - API application
api/main.py
Persistence and identity
- Shared database
api/database.py - Identity and tokens
api/auth.py - Official section data
api/seed_data.py
Admin and notifications
- Student verification and PIN reset
api/routers/admin_routes.py - Notification preferences
api/routers/notification_routes.py - Push delivery
api/notifications.py
Other components
- Student
Connections 36
- Student → Web app shell: uses
- Student → Android app shell: uses
- Web app shell → Web API client: uses
frontend/src/App.jsx - Web app shell → Attendance views: renders
frontend/src/App.jsx - Web app shell → Forecast views: renders
frontend/src/App.jsx - Web app shell → Timetable views: renders
frontend/src/App.jsx - Web app shell → Settings: renders
frontend/src/App.jsx - Web app shell → Admin panel: renders
frontend/src/App.jsx - Android app shell → Android API client: uses
apy-android/src/App.jsx - Android app shell → Attendance and forecast: renders
apy-android/src/App.jsx - Android app shell → Forecast views: renders
apy-android/src/App.jsx - Android app shell → Timetable views: renders
apy-android/src/App.jsx - Android app shell → Admin panel: renders
apy-android/src/App.jsx - Android app shell → Native storage: uses
- Web API client → API application: calls shared API
- Android API client → API application: calls shared API
- API application → Registration and login: registers
api/main.py - API application → Section timetables: registers
api/main.py - API application → Attendance and forecast: registers
api/main.py - API application → Student verification and PIN reset: registers
api/main.py - API application → Notification preferences: registers
api/main.py - Registration and login → Shared database: reads and writes
api/routers/auth_routes.py - Registration and login → Identity and tokens: uses
api/routers/auth_routes.py - Attendance and forecast → Shared database: reads and writes
api/routers/attendance_routes.py - Attendance and forecast → Identity and tokens: authenticates
api/routers/attendance_routes.py - Section timetables → Shared database: reads and writes
api/routers/section_routes.py - Section timetables → Identity and tokens: authenticates
api/routers/section_routes.py - API application → Official section data: seeds locally
api/main.py - Official section data → Shared database: populates
api/seed_data.py - Student verification and PIN reset → Shared database: reads and writes
api/routers/admin_routes.py - Student verification and PIN reset → Identity and tokens: authorizes admin
api/routers/admin_routes.py - Student verification and PIN reset → Push delivery: broadcasts updates
api/routers/admin_routes.py - Notification preferences → Shared database: reads and writes
api/routers/notification_routes.py - Notification preferences → Identity and tokens: authenticates
api/routers/notification_routes.py - Notification preferences → Push delivery: configures delivery
api/routers/notification_routes.py - Push delivery → Shared database: loads subscriptions
api/notifications.py