How vyshnavi536/eduseal1 works
Eduseal Tutor is an exam-preparation app for JEE/NEET learners. Users sign in, choose a test, answer timed questions, submit for evaluation, and review results and progress; they can also ask AI-powered study questions. The frontend uses Firebase for authentication and user/test data, while an Express backend provides question and AI endpoints. The excerpts show the question and AI service flows; some frontend-to-backend HTTP wiring and unsampled progress and settings behavior are represented only where clearly supported or left unverified.
Main entry points: App.jsx App routing · TestPage.jsx Timed test · firebase.js Firebase client · aiRoutes.js AI endpoint
Components 29
Learner experience
- App routing
frontend/src/App.jsx - Sign in and signup
frontend/src/pages/Login.jsx - Protected routes
frontend/src/components/ProtectedRoute.jsx - Study home
frontend/src/pages/Home.jsx - Profile and settings
frontend/src/components/Navbar.jsx
Practice and progress
- Test setup
frontend/src/pages/TakeTest.jsx - Timed test
frontend/src/pages/TestPage.jsx - Question controls
frontend/src/components/QuestionCard.jsx - Question navigation
frontend/src/components/QuestionNavigator.jsx - Local question bank
frontend/src/data/questionBank.js - Test summary
frontend/src/pages/TestSummary.jsx - Progress tracking
frontend/src/pages/Progress.jsx - Ask a doubt
frontend/src/pages/AskDoubt.jsx
Backend API
- API client
frontend/src/services/api.js - Express server
backend/src/server.js - Question endpoints
backend/src/routes/questionRoutes.js - Question selection and scoring
backend/src/services/questionService.js - AI endpoint
backend/src/routes/aiRoutes.js - Groq AI service
backend/src/services/groqService.js - AI usage limits
backend/src/services/usageService.js - Error handlers
backend/src/middleware/errorHandler.js
Identity and data
- Request authentication
backend/src/middleware/requireAuth.js - Admin identity
backend/src/config/firebaseAdmin.js - Firebase client
frontend/src/firebase.js - Database access
backend/src/config/database.js - MySQL question store
- Firestore user data
Other components
- Learner
- Groq service
Connections 40
- Learner → App routing: uses
frontend/src/App.jsx - App routing → Sign in and signup: routes to
frontend/src/App.jsx - App routing → Protected routes: protects
frontend/src/App.jsx - App routing → Study home: routes to
frontend/src/App.jsx - App routing → Test setup: routes to
frontend/src/App.jsx - App routing → Timed test: routes to
frontend/src/App.jsx - App routing → Test summary: routes to
frontend/src/App.jsx - App routing → Progress tracking: routes to
frontend/src/App.jsx - App routing → Ask a doubt: routes to
frontend/src/App.jsx - Protected routes → Firebase client: checks session
frontend/src/components/ProtectedRoute.jsx - Sign in and signup → Firebase client: uses identity
frontend/src/pages/Login.jsx - Study home → Profile and settings: renders
frontend/src/pages/Home.jsx - Profile and settings → Firebase client: reads profile
frontend/src/components/Navbar.jsx - Profile and settings → Firestore user data: reads and writes
frontend/src/components/Navbar.jsx - Test setup → Firebase client: uses identity
frontend/src/pages/TakeTest.jsx - Timed test → API client: requests test and scoring
frontend/src/pages/TestPage.jsx - Timed test → Question controls: renders
frontend/src/pages/TestPage.jsx - Timed test → Question navigation: renders
frontend/src/pages/TestPage.jsx - Timed test → Local question bank: falls back to
frontend/src/pages/TestPage.jsx - Timed test → Firebase client: uses identity
frontend/src/pages/TestPage.jsx - Timed test → Firestore user data: saves test result
frontend/src/pages/TestPage.jsx - Progress tracking → Firebase client: uses data access
frontend/src/pages/Progress.jsx - Progress tracking → Firestore user data: reads progress
- Ask a doubt → API client: requests answer
- API client → Question endpoints: calls endpoints
- API client → AI endpoint: calls endpoint
- Express server → Question endpoints: mounts routes
backend/src/server.js - Express server → AI endpoint: mounts routes
backend/src/server.js - Express server → Error handlers: uses handlers
backend/src/server.js - Question endpoints → Question selection and scoring: calls
backend/src/routes/questionRoutes.js - Question endpoints → Request authentication: requires auth
backend/src/routes/questionRoutes.js - Question selection and scoring → Database access: queries
backend/src/services/questionService.js - Database access → MySQL question store: executes SQL
backend/src/config/database.js - AI endpoint → Request authentication: requires auth
backend/src/routes/aiRoutes.js - AI endpoint → AI usage limits: checks quota and lock
backend/src/routes/aiRoutes.js - AI endpoint → Groq AI service: requests response
backend/src/routes/aiRoutes.js - Groq AI service → Groq service: calls provider
- AI usage limits → Admin identity: uses admin identity
backend/src/services/usageService.js - Request authentication → Admin identity: verifies token
backend/src/middleware/requireAuth.js - Firebase client → Firestore user data: connects
frontend/src/firebase.js