QuizMaster
A full-stack assessment platform featuring timed examinations, multiple question formats, role-based access control, RESTful APIs, and interactive performance analytics.
- Flask
- SQLAlchemy
- Jinja2
- ChartJS

Overview
QuizMaster is a full-stack, multi-user assessment platform designed to simulate real examination workflows and provide a structured environment for exam preparation.
The platform enables administrators to organize educational content into subjects, chapters, and quizzes, while students can participate in timed assessments, review previous attempts, track performance, and compare their rankings through leaderboards.
Built using Flask, SQLAlchemy, and SQLite, the application integrates server-side rendering, RESTful APIs, relational data modeling, and interactive analytics into a unified system.
Problem Statement
Students often rely on fragmented learning resources that lack structured assessments, consistent evaluation, and meaningful performance tracking. Traditional quiz applications also tend to offer limited question formats and basic scoring mechanisms.
QuizMaster was developed to address these limitations by providing a centralized assessment platform that supports multiple question types, configurable examination schedules, detailed attempt tracking, and performance visualization.
The objective was to build an examination system rather than a simple question-and-answer application.
My Contribution
I designed and developed the application end-to-end, covering requirement analysis, database architecture, backend development, frontend implementation, API design, and functional testing.
My key contributions include:
- Designed a relational database schema consisting of nine interconnected entities for managing educational content, assessments, and user responses.
- Implemented session-based authentication and role-based access control for administrator and student workflows.
- Developed a timed quiz engine supporting single-correct, multiple-correct, and numerical-answer questions.
- Implemented question navigation, mark-for-review functionality, automatic timeout submission, and question-level scoring.
- Developed RESTful APIs for managing users, subjects, chapters, questions, and quizzes, including bulk content creation.
- Built interactive analytics dashboards using Chart.js for performance tracking and administrative insights.
- Implemented attempt history, response review, and leaderboard-based performance comparison.
System Architecture
QuizMaster follows a server-rendered monolithic architecture, with Flask handling application routing, authentication, business logic, and API operations.
The system is organized into four logical layers:
| Layer | Responsibility |
|---|---|
| Presentation | Server-rendered interfaces using Jinja2, Bootstrap, HTML, CSS, and JavaScript |
| Application | Flask routes, authentication, quiz management, and business logic |
| API | RESTful resource management using Flask-RESTful |
| Data | SQLAlchemy ORM and SQLite relational database |
Database Design
The database separates educational content from assessment execution and evaluation.
- Content management: Subject, Chapter, Question, Option
- Assessment management: Quiz, Quiz Question
- User management: User
- Assessment execution: Attempt, Response
A many-to-many relationship between quizzes and questions allows questions to be associated with multiple assessments. The intermediate Quiz Question entity also stores question-specific marks, allowing scoring configurations to vary across quizzes.
Individual attempts and responses are stored separately, enabling detailed result analysis, historical tracking, and question-level performance evaluation.
REST API Layer
The application exposes five primary resource groups:
/api/user— User management/api/subject— Subject management/api/chapter— Chapter management/api/question— Question and option management/api/quiz— Quiz creation and retrieval
Bulk creation operations for subjects, chapters, and questions reduce the need for repetitive manual content entry through the administrative interface.
Engineering Challenges
Modeling Multiple Question Types
One of the core design challenges was supporting different question formats within a unified assessment system.
Single-correct questions, multiple-correct questions, and numerical-answer questions require different response representations and evaluation rules.
The database design accommodates these formats through question-type attributes, separate option entities, numerical answers, and question-level response records.
Managing the Quiz Lifecycle
A timed assessment involves more than displaying questions and calculating a final score.
The system manages quiz availability, duration, attempt initiation, question ordering, response timestamps, review status, submission, and marks awarded.
Representing attempts and responses as independent entities allows the application to retain detailed information about each examination session.
Relational Data Integrity
Educational content and assessment records have several interdependent relationships. Deleting or modifying a subject, chapter, or question can affect associated quizzes and historical records.
The relational schema uses foreign-key relationships to represent these dependencies, while applicable API deletion operations restrict the removal of resources that are already in use.
Authentication and Authorization
Administrator and student accounts require different permissions despite operating within the same application.
Session-based authentication and role-based authorization were implemented to restrict administrative operations while allowing registered users to access assessments and performance data.
Technical Decisions
| Decision | Rationale |
|---|---|
| Flask | Lightweight framework offering flexibility over application structure and business logic |
| Server-side rendering with Jinja2 | Reduced frontend complexity while supporting dynamic interfaces |
| SQLAlchemy ORM | Simplified relational modeling and database interactions |
| SQLite | Lightweight persistence without requiring a separate database server |
| Flask-RESTful | Resource-oriented APIs alongside traditional server-rendered routes |
| Chart.js | Interactive performance visualization with minimal frontend overhead |
| Separate Question and Quiz Question entities | Question reuse and assessment-specific scoring |
| Separate Attempt and Response entities | Granular tracking of assessment history and individual responses |
| Session-based authentication | Straightforward authentication for a server-rendered web application |
These choices prioritized functional completeness, development simplicity, and a manageable application architecture within the scope of the project.
Results & Outcomes
The project resulted in a functional assessment platform supporting the complete workflow from educational content creation to quiz participation and performance evaluation.
Key outcomes include:
- Two distinct user roles with dedicated workflows.
- Three supported question formats.
- Nine interconnected relational database entities.
- Five primary REST API resource groups.
- Timed assessments with automatic timeout submission.
- Image-based questions and answer options.
- Question-level scoring and historical attempt review.
- Student performance analytics, administrative dashboards, and leaderboards.
The application was functionally tested in a local development environment to validate its core assessment and management workflows.
Lessons Learned
Developing QuizMaster strengthened my understanding of how real-world business requirements translate into application architecture, relational database design, and backend workflows.
The project provided practical experience in:
- Designing relational schemas around complex entity relationships.
- Separating reusable content from transactional application data.
- Implementing stateful workflows involving user sessions, timestamps, and assessment responses.
- Designing RESTful APIs alongside server-rendered web applications.
- Applying authentication and authorization at the application level.
- Transforming stored application data into meaningful analytical visualizations.
Future Improvements
Potential improvements include:
- Migrating to PostgreSQL for more demanding concurrent workloads.
- Strengthening server-side enforcement of assessment deadlines.
- Introducing automated unit and integration tests.
- Implementing question randomization and configurable evaluation policies.
- Adding adaptive assessments and personalized learning recommendations.
- Introducing containerized deployment and continuous integration.