How blaiirytale/tkubuddy works
TKU Buddy is an Expo student companion prototype. Students enter through the app’s login and can view a home dashboard with graduation progress and general-education requirements, then browse course suggestions; profile and language settings are also available. The dashboard currently uses local mock data, while a separate Express backend exposes course lookup routes backed by PostgreSQL. The shown excerpts establish these component and data relationships, but do not show the mobile app calling the backend or completing planned features such as course planning and chat.
Main entry points: home.tsx Home dashboard · ProfileContext.tsx Profile state · suggestions.tsx Suggestions screen · server.ts Course API
Components 18
Student app
- Login screen
src/app/login.tsx - Home dashboard
src/app/home.tsx - Quick access
src/components/QuickAccess.tsx - App layout
src/app/_layout.tsx
Academic content
- Graduation progress
src/components/GraduationProgress.tsx - General education
src/components/GeneralKnowledge.tsx - Requirement card
src/components/GECard.tsx - Requirement data
src/data/geData.ts - Suggestions screen
src/app/suggestions.tsx - Suggestion card
src/components/SuggestionCard.tsx - Suggestion data
src/data/suggestionsData.ts
Course backend
- Course API
backend/src/server.ts - Database connection
backend/src/db.ts - Course database
backend/database/schema.sql
Profile settings
- Settings screen
src/app/settings.tsx - Profile state
src/context/ProfileContext.tsx - Profile avatar
src/components/Avatar.tsx
Other components
- Student
Connections 18
- Student → Login screen: signs in
- App layout → Profile state: provides state
src/app/_layout.tsx - Home dashboard → Profile state: reads name
src/app/home.tsx - Home dashboard → Requirement data: loads categories
src/app/home.tsx - Home dashboard → Graduation progress: renders
src/app/home.tsx - Home dashboard → Quick access: renders
src/app/home.tsx - Home dashboard → General education: renders
src/app/home.tsx - Home dashboard → Profile avatar: renders
src/app/home.tsx - General education → Requirement card: renders
src/components/GeneralKnowledge.tsx - Requirement card → Requirement data: reads types
src/components/GECard.tsx - Quick access → Suggestions screen: routes on selection
- Suggestions screen → Suggestion data: loads suggestions
src/app/suggestions.tsx - Suggestions screen → Suggestion card: renders
src/app/suggestions.tsx - Suggestion card → Suggestion data: reads types
src/components/SuggestionCard.tsx - Settings screen → Profile state: reads and updates
src/app/settings.tsx - Profile avatar → Profile state: reads photo
src/components/Avatar.tsx - Course API → Database connection: queries
backend/src/server.ts - Course API → Course database: reads courses
backend/src/server.ts