How mesit-rathnayake/my_academia works
My Academia is a student-management application with a web UI, an Express/Prisma backend, and a separate Python RAG service. Students use the UI to manage modules and academic work; for the tutor workflow, they upload course PDFs, create chat sessions, and ask questions grounded in indexed documents. The README also describes module/progress tracking, scheduling, exams, GPA, and notifications. Arrows reflect shown routes, imports, and documented service calls; unsampled frontend-to-backend wiring is left unverified.
Main entry points: App.js UI routes · moduleRoutes.js Module routes · vector_store_service.py Vector indexing · server.js Express API
Components 26
Web experience
- UI routes
frontend/src/App.js - Modules dashboard
frontend/src/pages/Home.jsx - Tutor chat UI
frontend/src/pages/Chat.jsx - Schedule UI
frontend/src/pages/Schedule.jsx - Performance UI
frontend/src/pages/Performance.jsx
Student management
- Authentication routes
backend/routes/authRoutes.js - Authentication
backend/controllers/authController.js - JWT verification
backend/middlewares/auth.js - Module routes
backend/routes/moduleRoutes.js - Module management
backend/controllers/moduleController.js - Document handling
backend/controllers/documentController.js - Chat sessions
backend/controllers/chatController.js - Academic routes
backend/routes - Academic operations
backend/controllers - Express API
backend/server.js
AI tutor
- RAG API
ai-service/app/main.py - PDF indexing
ai-service/app/routes/documents.py - Semantic search
ai-service/app/routes/search.py - RAG chat endpoint
ai-service/app/routes/chat.py - PDF extraction
ai-service/app/services/pdf_service.py - Answer generation
ai-service/app/services/chat_service.py - Text embeddings
ai-service/app/services/embedding_service.py - Vector indexing
ai-service/app/services/vector_store_service.py
Persistence
- Relational database
- Chroma vector store
Other components
- Student
Connections 36
- Student → UI routes: uses
frontend/src/App.js - UI routes → Modules dashboard: routes
frontend/src/App.js - UI routes → Tutor chat UI: routes
frontend/src/App.js - UI routes → Schedule UI: routes
frontend/src/App.js - UI routes → Performance UI: routes
frontend/src/App.js - Student → Modules dashboard: manages coursework
README.md - Student → Tutor chat UI: asks questions
README.md - Student → Schedule UI: plans schedule
README.md - Student → Performance UI: tracks progress
README.md - Express API → Authentication routes: mounts
backend/server.js - Express API → Module routes: mounts
backend/server.js - Express API → Academic routes: mounts
backend/server.js - Authentication routes → Authentication: dispatches
backend/routes/authRoutes.js - Authentication routes → JWT verification: protects
backend/routes/authRoutes.js - Module routes → JWT verification: protects
backend/routes/moduleRoutes.js - Module routes → Module management: dispatches
backend/routes/moduleRoutes.js - Module routes → Document handling: dispatches
backend/routes/moduleRoutes.js - Module routes → Chat sessions: dispatches
backend/routes/moduleRoutes.js - Academic routes → Academic operations: dispatches
backend/routes/moduleRoutes.js - Authentication → Relational database: reads/writes
backend/controllers/authController.js - Module management → Relational database: reads/writes
backend/controllers/moduleController.js - Document handling → Relational database: records documents
backend/controllers/documentController.js - Chat sessions → Relational database: stores sessions
backend/controllers/chatController.js - Document handling → PDF indexing: indexes PDF
backend/controllers/documentController.js - Chat sessions → RAG chat endpoint: proxies questions
backend/controllers/chatController.js - RAG API → PDF indexing: registers routes
ai-service/app/main.py - RAG API → Semantic search: registers routes
ai-service/app/main.py - RAG API → RAG chat endpoint: registers routes
ai-service/app/main.py - PDF indexing → PDF extraction: extracts text
ai-service/app/routes/documents.py - PDF indexing → Vector indexing: indexes chunks
ai-service/app/routes/documents.py - Semantic search → Vector indexing: retrieves chunks
ai-service/app/routes/search.py - RAG chat endpoint → Answer generation: generates answer
ai-service/app/routes/chat.py - Answer generation → Vector indexing: retrieves context
ai-service/app/services/chat_service.py - Vector indexing → Text embeddings: embeds text
ai-service/app/services/vector_store_service.py - Vector indexing → Chroma vector store: reads/writes
README.md - Student → Express API: uses academic services
README.md