How sitaramayyavattikula-sourc/ecet-prep-hub works
This is a Flask-based ECET preparation portal for students, with learning materials, quizzes and exams, AI study support, and account, leaderboard, and admin features. The main workflow is a student entering the portal, choosing study content or an assessment, submitting answers, and viewing results; AI chat and generated exams form a separate study branch. Routes coordinate the web workflows, while the database module provides persistent state. The README is empty, and sampled routes are partial, so some feature-to-storage wiring is omitted where it cannot be verified.
Main entry points: routes.py Flask routes · quiz.html Quiz interface · subject_notes.html Resource browsing · ai_exam_setup.html AI exam workflow
Components 20
Portal and accounts
- Flask routes
app/routes.py - Portal pages
templates - Accounts and profiles
templates/register.html - Application database
database/database.py
Learning resources
- Subject notes
static/pdfs/notes - Past papers
static/pdfs/papers - Resource browsing
templates/subject_notes.html
Quizzes and exams
- Quiz question bank
app/quiz_questions.py - Quiz interface
templates/quiz.html - Question navigation
static/js/palette.js - Exam timer
static/js/timer.js - Scores and results
templates/quiz_result.html - AI exam workflow
templates/ai_exam_setup.html
AI and administration
- AI study pages
templates/ai_tutor.html - AI chat client
static/js/ai_assistant.js - Admin tools
templates/admin.html - Contact messages
templates/contact.html - Leaderboard
templates/leaderboard.html
Other components
- Student
- Gemini API
Connections 22
- Student → Flask routes: uses portal
- Flask routes → Portal pages: renders pages
- Flask routes → Accounts and profiles: handles accounts
- Flask routes → Application database: reads and writes
- Flask routes → Resource browsing: serves resources
- Resource browsing → Subject notes: links to notes
- Resource browsing → Past papers: links to papers
- Flask routes → Quiz interface: serves quiz
- Flask routes → Quiz question bank: loads questions
- Quiz interface → Question navigation: tracks navigation
- Quiz interface → Exam timer: times attempt
- Quiz interface → Flask routes: submits answers
- Flask routes → Scores and results: returns results
- Flask routes → AI exam workflow: serves exam flow
- AI exam workflow → Flask routes: requests exam
- Flask routes → AI study pages: serves AI pages
- AI study pages → AI chat client: hosts chat
- AI chat client → Flask routes: posts chat
- Flask routes → Gemini API: generates responses
- Flask routes → Admin tools: serves admin tools
- Flask routes → Contact messages: handles contact
- Flask routes → Leaderboard: serves rankings