How eraygurbuzz/yzta-bootcamp-2026 works
StudyMate AI is a PDF-centered learning assistant: students manage courses and documents, ask cited questions, take quizzes, and use performance insights for review. The graph follows the visible frontend routing and backend service calls; the README supplies documented capabilities whose implementation links were not shown. Source excerpts do not establish all persistence or external-service wiring, so uncertain relationships are omitted or marked dashed.
Main entry points: main.py FastAPI application · session.py Database session · App.jsx Page router · documents.py Document routes
Components 34
Student interface
- Page router
frontend/src/App.jsx - Authentication UI
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/client.js - Study dashboard
frontend/src/pages/DashboardPage.jsx - Analytics view
frontend/src/pages/AnalyticsPage.jsx - Flashcards view
frontend/src/pages/FlashcardsPage.jsx - Study plan view
frontend/src/pages/StudyPlanPage.jsx
Backend API
- FastAPI application
backend/app/main.py - Auth routes
backend/app/api/routes/auth.py - Course routes
backend/app/api/routes/courses.py - Document routes
backend/app/api/routes/documents.py - Chat routes
backend/app/api/routes/chat.py - Quiz routes
backend/app/api/routes/quiz.py - Analytics routes
backend/app/api/routes/analytics.py - Flashcard routes
backend/app/api/routes/flashcards.py - Study plan routes
backend/app/api/routes/study_plans.py - Evaluation routes
backend/app/api/routes/evaluation.py - User authentication
backend/app/api/dependencies.py
Learning services
- PDF processing
backend/app/services/document_processor.py - RAG answering
backend/app/services/rag_service.py - Embedding service
backend/app/services/embedding_service.py - Semantic retrieval
backend/app/services/vector_store.py - Gemini text generation
backend/app/services/llm_service.py - Quiz generation
backend/app/services/quiz_service.py - Flashcard generation
backend/app/services/flashcard_service.py - Study recommendations
backend/app/services/study_plan_service.py
Data and retrieval
- Database session
backend/app/db/session.py - User records
backend/app/models/user.py - Course records
backend/app/models/course.py - Documents and chunks
backend/app/models/document.py - Quiz results
backend/app/models/quiz.py - Flashcard records
backend/app/models/flashcard.py - Study plans
backend/app/models/study_plan.py
Other components
- Student
Connections 46
- Student → Page router: uses
README.md - Page router → Authentication UI: checks access
frontend/src/App.jsx - Page router → Study dashboard: shows page
frontend/src/App.jsx - Page router → Analytics view: shows page
frontend/src/App.jsx - Page router → Flashcards view: shows page
frontend/src/App.jsx - Page router → Study plan view: shows page
frontend/src/App.jsx - Authentication UI → API client: sends requests
frontend/src/context/AuthContext.jsx - Study dashboard → API client: requests data
frontend/src/pages/DashboardPage.jsx - Flashcards view → API client: requests data
frontend/src/pages/FlashcardsPage.jsx - Study plan view → API client: requests data
frontend/src/pages/StudyPlanPage.jsx - API client → FastAPI application: calls backend
- FastAPI application → Auth routes: registers routes
backend/app/main.py - FastAPI application → Course routes: registers routes
backend/app/main.py - FastAPI application → Document routes: registers routes
backend/app/main.py - FastAPI application → Chat routes: registers routes
backend/app/main.py - FastAPI application → Quiz routes: registers routes
backend/app/main.py - FastAPI application → Analytics routes: registers routes
backend/app/main.py - FastAPI application → Flashcard routes: registers routes
backend/app/main.py - FastAPI application → Study plan routes: registers routes
backend/app/main.py - FastAPI application → Evaluation routes: registers routes
backend/app/main.py - Auth routes → User authentication: uses identity
backend/app/api/dependencies.py - User authentication → User records: loads user
backend/app/api/dependencies.py - Auth routes → User records: manages accounts
backend/app/api/routes/auth.py - Course routes → Course records: manages courses
backend/app/api/routes/courses.py - Document routes → PDF processing: processes PDFs
backend/app/api/routes/documents.py - Document routes → Embedding service: creates vectors
backend/app/api/routes/documents.py - Document routes → Semantic retrieval: stores vectors
backend/app/api/routes/documents.py - Document routes → Documents and chunks: manages documents
backend/app/api/routes/documents.py - Chat routes → RAG answering: answers questions
backend/app/api/routes/chat.py - RAG answering → Embedding service: embeds query
backend/app/services/rag_service.py - RAG answering → Semantic retrieval: retrieves chunks
backend/app/services/rag_service.py - RAG answering → Gemini text generation: generates answer
backend/app/services/rag_service.py - Quiz routes → Quiz generation: generates quizzes
README.md - Quiz routes → Quiz results: records results
README.md - Flashcard routes → Flashcard generation: creates cards
backend/app/api/routes/flashcards.py - Flashcard routes → Flashcard records: manages cards
backend/app/api/routes/flashcards.py - Study plan routes → Study recommendations: builds plans
backend/app/api/routes/study_plans.py - Study recommendations → Quiz results: analyzes results
backend/app/services/study_plan_service.py - Study plan routes → Study plans: manages plans
backend/app/api/routes/study_plans.py - Analytics routes → Quiz results: analyzes performance
backend/app/api/routes/analytics.py - Database session → User records: provides ORM base
backend/app/models/user.py - Database session → Documents and chunks: provides ORM base
backend/app/models/document.py - Database session → Course records: provides ORM base
- Database session → Quiz results: provides ORM base
backend/app/models/quiz.py - Database session → Flashcard records: provides ORM base
backend/app/models/flashcard.py - Database session → Study plans: provides ORM base