How oolemonteaoo/tcd-student-planner works
TCD Student Planner lets students register or log in, then manage courses, assignments, notes, and grades through a React interface backed by a FastAPI API and PostgreSQL. The dashboard presents course and assignment overviews, while grade summaries calculate weighted averages and remaining weight. The graph includes the documented responsive, routed interface and persistent theme preference. Some backend router and frontend page implementations are unsampled; their capabilities are retained, but uncertain connections are omitted or marked unverified.
Main entry points: App.tsx SPA routes · main.py FastAPI application · dependencies.py Auth dependency · session.py Database sessions
Components 28
Student interface
- SPA routes
frontend/src/App.tsx - Auth context
frontend/src/auth.tsx - Login and register
frontend/src/pages/Login.tsx - Protected layout
frontend/src/components/Layout.tsx - Dashboard
frontend/src/pages/Dashboard.tsx - Course management
frontend/src/pages/Courses.tsx - Assignment management
frontend/src/pages/Assignments.tsx - Notes and search
frontend/src/pages/Notes.tsx - Grade tracking
frontend/src/pages/Grades.tsx - Theme preference
frontend/src/theme.tsx - API client
frontend/src/api.ts
API and identity
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Profile route
backend/app/routers/users.py - Course routes
backend/app/routers/courses.py - Assignment routes
backend/app/routers/assignments.py - Notes routes
backend/app/routers/notes.py - Grade routes
backend/app/routers/grades.py - Password and tokens
backend/app/services/auth.py - Auth dependency
backend/app/routers/dependencies.py
Domain data
- Database sessions
backend/app/database/session.py - PostgreSQL
- User model
backend/app/models/user.py - Course model
backend/app/models/course.py - Assignment model
backend/app/models/assignment.py - Note model
backend/app/models/note.py - Grade model
backend/app/models/grade.py
Other components
- Student
Connections 43
- Student → SPA routes: uses
README.md - SPA routes → Login and register: routes to
frontend/src/App.tsx - SPA routes → Protected layout: protects routes
frontend/src/App.tsx - SPA routes → Dashboard: routes to
frontend/src/App.tsx - SPA routes → Course management: routes to
frontend/src/App.tsx - SPA routes → Assignment management: routes to
frontend/src/App.tsx - SPA routes → Notes and search: routes to
frontend/src/App.tsx - SPA routes → Grade tracking: routes to
frontend/src/App.tsx - Auth context → Login and register: serves
frontend/src/pages/Login.tsx - Login and register → Auth context: authenticates
frontend/src/pages/Login.tsx - Protected layout → Theme preference: uses
frontend/src/components/Layout.tsx - Dashboard → API client: requests data
frontend/src/pages/Dashboard.tsx - Course management → API client: requests data
frontend/src/pages/Courses.tsx - Assignment management → API client: requests data
frontend/src/pages/Assignments.tsx - Notes and search → API client: requests data
frontend/src/pages/Notes.tsx - Grade tracking → API client: requests data
frontend/src/pages/Grades.tsx - API client → FastAPI application: sends API requests
README.md - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Profile route: registers
backend/app/main.py - FastAPI application → Course routes: registers
backend/app/main.py - FastAPI application → Assignment routes: registers
backend/app/main.py - FastAPI application → Notes routes: registers
backend/app/main.py - FastAPI application → Grade routes: registers
backend/app/main.py - Authentication routes → Password and tokens: uses
backend/app/routers/auth.py - Authentication routes → Database sessions: opens session
backend/app/routers/auth.py - Auth dependency → Database sessions: opens session
backend/app/routers/dependencies.py - Auth dependency → User model: loads user
backend/app/routers/dependencies.py - Course routes → Database sessions: queries
backend/app/routers/courses.py - Assignment routes → Database sessions: queries
backend/app/routers/assignments.py - Notes routes → Database sessions: queries
backend/app/routers/notes.py - Grade routes → Database sessions: queries
backend/app/routers/grades.py - Grade routes → Auth dependency: authenticates via
backend/app/routers/grades.py - Assignment routes → Auth dependency: authenticates via
backend/app/routers/assignments.py - Course routes → Auth dependency: authenticates via
backend/app/routers/courses.py - Notes routes → Auth dependency: authenticates via
backend/app/routers/notes.py - Profile route → Auth dependency: authenticates via
backend/app/routers/users.py - Authentication routes → User model: reads and writes
backend/app/routers/auth.py - Course routes → Course model: reads and writes
backend/app/routers/courses.py - Assignment routes → Assignment model: reads and writes
backend/app/routers/assignments.py - Notes routes → Note model: reads and writes
backend/app/routers/notes.py - Grade routes → Grade model: reads and writes
backend/app/routers/grades.py - Grade routes → Course model: checks ownership
backend/app/routers/grades.py - Database sessions → PostgreSQL: connects to
README.md