How mathivadhanis505/student_prod works
Eko is a student-life dashboard for managing coursework, deadlines, exams, focus sessions, calendar events, and study statistics, with Google and Spotify integrations. The main workflow loads dashboard data through the frontend API client, presents it in routed pages and widgets, and sends task, course, exam, or focus-session actions back through the client. The backend exposes domain-specific API routers backed by relational models and a database. Google integration is represented by normalized sample data and placeholder API calls; the README is empty, so capability coverage is based on the source index and sampled code.
Main entry points: App.tsx App shell · api.ts API client · database.py Database session · DashboardPage.tsx Dashboard
Components 34
Dashboard client
- App shell
frontend/src/App.tsx - API client
frontend/src/lib/api.ts - Dashboard
frontend/src/pages/DashboardPage.tsx - Calendar page
frontend/src/pages/CalendarPage.tsx - Tasks page
frontend/src/pages/TasksPage.tsx - Courses page
frontend/src/pages/CoursesPage.tsx - Focus page
frontend/src/pages/FocusPage.tsx - Stats page
frontend/src/pages/StatsPage.tsx - Timeline widget
frontend/src/components/dashboard/UnifiedTimelineWidget.tsx - Today tasks widget
frontend/src/components/dashboard/TodayTasksWidget.tsx - Pomodoro widget
frontend/src/components/dashboard/MiniPomodoroWidget.tsx - Focus widget
frontend/src/components/dashboard/FocusRightNowWidget.tsx - Spotify widget
frontend/src/components/dashboard/SpotifyWidget.tsx - Task editor
frontend/src/components/tasks/TaskModal.tsx - Course editor
frontend/src/components/tasks/CourseModal.tsx - Exam editor
frontend/src/components/tasks/ExamModal.tsx
Backend API
- Authentication
backend/app/api/auth.py - Course API
backend/app/api/courses.py - Task API
backend/app/api/tasks.py - Exam API
backend/app/api/exams.py - Calendar API
backend/app/api/calendar.py - Focus API
backend/app/api/focus.py - Spotify API
backend/app/api/spotify.py - Statistics API
backend/app/api/stats.py - Timeline API
backend/app/api/timeline.py - AI planner API
backend/app/api/ai_planner.py - Planner stub
backend/app/services/ai_planner_stub.py
Persistence and integrations
- Database session
backend/app/core/database.py - Domain models
backend/app/models/models.py - API schemas
backend/app/schemas/schemas.py - Google service
backend/app/services/google_service.py - Spotify service
backend/app/services/spotify_service.py
Other components
- Student
- Relational database
Connections 48
- Student → App shell: uses
- App shell → Dashboard: routes to
frontend/src/App.tsx - App shell → Calendar page: routes to
frontend/src/App.tsx - App shell → Tasks page: routes to
frontend/src/App.tsx - App shell → Courses page: routes to
frontend/src/App.tsx - App shell → Focus page: routes to
frontend/src/App.tsx - App shell → Stats page: routes to
frontend/src/App.tsx - App shell → API client: loads and updates
frontend/src/App.tsx - App shell → Task editor: renders
frontend/src/App.tsx - App shell → Course editor: renders
frontend/src/App.tsx - App shell → Exam editor: renders
frontend/src/App.tsx - Dashboard → Timeline widget: renders
frontend/src/pages/DashboardPage.tsx - Dashboard → Today tasks widget: renders
frontend/src/pages/DashboardPage.tsx - Dashboard → Pomodoro widget: renders
frontend/src/pages/DashboardPage.tsx - Dashboard → Focus widget: renders
frontend/src/pages/DashboardPage.tsx - Dashboard → Spotify widget: renders
frontend/src/pages/DashboardPage.tsx - API client → Authentication: requests
- API client → Course API: requests
- API client → Task API: requests
- API client → Exam API: requests
- API client → Calendar API: requests
- API client → Focus API: requests
- API client → Spotify API: requests
- API client → Statistics API: requests
- API client → Timeline API: requests
- API client → AI planner API: requests
- Task API → Google service: fetches tasks
backend/app/api/tasks.py - Calendar API → Google service: fetches events
backend/app/api/calendar.py - Authentication → Google service: checks status
backend/app/api/auth.py - Authentication → Spotify service: checks status
backend/app/api/auth.py - Spotify API → Spotify service: delegates playback
backend/app/api/spotify.py - AI planner API → Planner stub: delegates planning
backend/app/api/ai_planner.py - Task API → Database session: queries and writes
backend/app/api/tasks.py - Course API → Database session: queries and writes
backend/app/api/courses.py - Exam API → Database session: queries and writes
backend/app/api/exams.py - Calendar API → Database session: queries
backend/app/api/calendar.py - Focus API → Database session: queries and writes
backend/app/api/focus.py - Statistics API → Database session: queries
backend/app/api/stats.py - Timeline API → Database session: queries
backend/app/api/timeline.py - Authentication → Database session: queries and writes
backend/app/api/auth.py - AI planner API → Database session: queries
backend/app/api/ai_planner.py - Database session → Relational database: persists
backend/app/core/database.py - Database session → Domain models: provides base
backend/app/models/models.py - Task API → Domain models: uses
backend/app/api/tasks.py - Task API → API schemas: validates responses
backend/app/api/tasks.py - Course API → Domain models: uses
backend/app/api/courses.py - Course API → API schemas: validates responses
backend/app/api/courses.py - Exam API → Domain models: uses
backend/app/api/exams.py