How praneet50/intelliquest works
Purpose and deployment shape
IntelliQuest is a full-stack document-to-question application: authenticated users upload files, backend processing extracts content and generates questions, and the frontend presents upload workflow, generated questions, and session history. It is split into a Node backend and a Vite/React frontend. Container and platform deployment assets exist at docker-compose.yml, backend/Dockerfile, and render.yaml.
Backend HTTP entry point
The Express server is rooted at backend/server.js, with application/database setup in backend/config/config.js and backend/config/database.js. Route modules separate the public API into authentication (backend/routes/authRoutes.js) and upload/question processing (backend/routes/uploadRoutes.js). Controllers provide the HTTP boundary: backend/controllers/authController.js and backend/controllers/uploadController.js.
Identity and access boundary
User accounts are persisted through backend/models/User.js. Authentication behavior is implemented by backend/controllers/authController.js; protected API access is enforced by backend/middleware/auth.js. The frontend maintains client authentication state in frontend/IntelliQuest/src/context/AuthContext.jsx and gates application routes through frontend/IntelliQuest/src/components/auth/ProtectedRoute.jsx.
Upload-to-question processing pipeline
Upload requests enter through backend/routes/uploadRoutes.js and backend/controllers/uploadController.js. Uploaded source files are parsed by backend/utils/fileParser.js, then passed to backend/services/questionService.js for question generation. backend/eng.traineddata indicates OCR support for English-language image/scanned-document extraction. Progress/lifecycle updates are handled by backend/utils/progressTracker.js.
Persistent upload and session domain
Upload records are modeled in backend/models/Upload.js, forming the backend representation of submitted documents and their processing/results. On the client, frontend/IntelliQuest/src/context/SessionContext.jsx owns session-oriented state, while sidebar history components (frontend/IntelliQuest/src/components/sidebar/HistoryList.jsx, frontend/IntelliQuest/src/components/sidebar/HistoryItem.jsx) expose prior sessions/uploads.
Frontend application composition
The React entry path is frontend/IntelliQuest/src/main.jsx into frontend/IntelliQuest/src/App.jsx. Page-level control is organized around Dashboard.jsx, Login.jsx, Register.jsx, and Settings.jsx under frontend/IntelliQuest/src/pages. Authenticated workspace structure is supplied by frontend/IntelliQuest/src/components/layout/MainLayout.jsx.
User workflow and API boundary
The dashboard upload flow is composed in frontend/IntelliQuest/src/components/upload/UploadContainer.jsx: file selection via DropZone.jsx, question options via QuestionSettings.jsx, submission via UploadButton.jsx, and results via QuestionDisplay.jsx. All browser-to-backend communication is centralized in frontend/IntelliQuest/src/services/api.js, making it the primary client/server contract boundary. The frontend is a Vite application (frontend/IntelliQuest/vite.config.js) with Vercel deployment configuration at frontend/IntelliQuest/vercel.json.
Main entry points: uploadRoutes.js Upload API · api.js API client · App.jsx App routing · Dashboard.jsx Dashboard workspace
Components 18
React frontend
- Vite app
frontend/IntelliQuest/src/main.jsx - App routing
frontend/IntelliQuest/src/App.jsx - Auth state
frontend/IntelliQuest/src/context/AuthContext.jsx - Protected routes
frontend/IntelliQuest/src/components/auth/ProtectedRoute.jsx - Dashboard workspace
frontend/IntelliQuest/src/pages/Dashboard.jsx - Upload workflow · Selection, question settings, submission, and results.
frontend/IntelliQuest/src/components/upload/UploadContainer.jsx - Session state
frontend/IntelliQuest/src/context/SessionContext.jsx - Session history
frontend/IntelliQuest/src/components/sidebar/HistoryList.jsx - API client
frontend/IntelliQuest/src/services/api.js
Express backend
- Express server
backend/server.js - Auth API
backend/routes/authRoutes.js - Upload API
backend/routes/uploadRoutes.js - Access middleware
backend/middleware/auth.js - Users
backend/models/User.js - Uploads · Persists submitted documents, lifecycle, and results.
backend/models/Upload.js
Document pipeline
- File extraction · Supports OCR-backed English extraction.
backend/utils/fileParser.js - Question generation
backend/services/questionService.js - Processing progress
backend/utils/progressTracker.js
Connections 21
- Vite app → App routing: boots
- App routing → Auth state: provides
- App routing → Protected routes: gates workspace
- Protected routes → Dashboard workspace: authorizes
- Dashboard workspace → Upload workflow: hosts
- Dashboard workspace → Session state: uses
- Session state → Session history: supplies
- Auth state → API client: auth requests
- Upload workflow → API client: submits files and options
- Session state → API client: loads sessions
- API client → Express server: HTTP API
- Express server → Auth API: routes
- Express server → Upload API: routes
- Auth API → Users: accounts
- Upload API → Access middleware: protects
- Access middleware → Uploads: scopes access
- Upload API → File extraction: extracts upload
- File extraction → Question generation: source content
- Question generation → Uploads: stores results
- Upload API → Processing progress: tracks lifecycle
- Processing progress → Uploads: updates status