How aashvikothari/quizportal works
Main Components
• Frontend Client: A React/Redux-based application with components, pages (for both Users and Admins), and UI themes (using Ant Design). Highlight the directory structure that shows screens for login, registration, exam writing (with timer), results viewing, and profile management.
• Backend Server: An Express/Node.js application responsible for business logic and API endpoints. It contains controllers (exam, report, user), models (exam, question, report, user), routes, and middlewares (e.g., JWT-based authentication).
• Database: A MongoDB database managed via Mongoose. It handles complex queries, schema validations, and storage for users, exams, questions, reports, and results.
• External Services (if applicable): Although not explicitly mentioned, consider any additional integrations like email services (for notifications) or third-party analytics if they are planned.
Relationships and Data Flow
• The Authentication Middleware plays a critical role by securing endpoints; thus, indicate its presence between the client’s request and the controller logic.
Architectural Patterns and Design Principles
• Separation of Concerns: The project clearly separates UI (frontend) from API and business logic (backend), which in turn is modular with controllers, models, and routes.
• Security: JWT Authentication along with password hashing, which should be highlighted as an essential cross-cutting concern in the architecture.
• Real-Time/Live Data: Consider indicating the real-time updates and timer functionalities in the exam module (perhaps using state management on the client side via Redux).