Examination Management Portal

App Dev 1 and App Dev 2

The Examination Management Portal is a web-based application designed to manage the complete examination lifecycle. The system provides dedicated functionality for students, examiners, and administrators, covering examination management, courses, examination slots, bookings, evaluations, rubrics, results, reports, and data exports.

The project is developed progressively in two stages:

  • App Dev 1: A Flask-based monolithic web application using server-rendered Jinja2 templates.
  • App Dev 2: A decoupled full-stack application with a Vue.js frontend and Flask REST API backend, enhanced with Redis caching and Celery-based background processing.

The second stage builds upon the functionality established in App Dev 1 while introducing a clearer separation of responsibilities, reusable frontend components, API-based communication, caching, asynchronous processing, reporting, and data export capabilities.


App Dev 1

1. Introduction

App Dev 1 provides the foundational implementation of the Examination Management Portal using Python, Flask, Jinja2, and SQLite.

The application follows a monolithic architecture, where the frontend, backend, business logic, and database-access functionality are maintained within a single Flask project.

Flask is responsible for processing HTTP requests, executing application logic, interacting with the database, and rendering responses. Jinja2 is used as the server-side template engine to generate dynamic HTML pages.

The objective of App Dev 1 is to provide a complete and maintainable foundation for examination management before progressing to a separated frontend and backend architecture in App Dev 2.


2. Objectives

The primary objectives of App Dev 1 are:

  • Provide secure authentication for different user roles.
  • Manage students, examiners, and administrators.
  • Manage courses and examinations.
  • Create and manage examination slots.
  • Allow students to book available examination slots.
  • Maintain booking and examination history.
  • Support examiner-based student evaluation.
  • Manage examination rubrics.
  • Store examination and evaluation data.
  • Display examination results.
  • Generate basic reports.
  • Provide a structured service layer for business logic.
  • Establish a maintainable foundation for future development.

3. Technology Stack

Area Technology
Programming Language Python
Backend Framework Flask
Frontend HTML, CSS, JavaScript
Template Engine Jinja2
Database SQLite
Architecture Monolithic
Authentication Flask-based authentication
Styling CSS
Client-side Interaction JavaScript

The technology stack is intentionally lightweight and suitable for developing the initial version of the examination management system.


4. System Architecture

App Dev 1 follows a monolithic layered architecture. The major application responsibilities are maintained within the same Flask project.

┌─────────────────────────────────────────────┐
│                    USERS                    │
│       Student │ Examiner │ Administrator   │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│              FLASK APPLICATION              │
│                   app.py                    │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│                ROUTE LAYER                  │
│ Authentication │ Student │ Examiner │ Admin │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│               SERVICE LAYER                 │
│           Business Logic & Rules            │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│                 DATA LAYER                  │
│             Models & Operations             │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│              SQLITE DATABASE                │
│                 database.db                │
└─────────────────────────────────────────────┘

                       ▲
                       │
┌─────────────────────────────────────────────┐
│           JINJA2 PRESENTATION LAYER         │
│       HTML │ CSS │ JavaScript │ Images      │
└─────────────────────────────────────────────┘

Architecture Characteristics

The architecture provides:

  • Centralized application management.
  • Server-side HTML rendering.
  • Clear separation between routes and business logic.
  • Direct database access through application models.
  • Role-based application functionality.
  • A straightforward deployment model.

5. Project Structure

examination-management-portal/
│
├── app.py
├── config.py
├── database.py
├── requirements.txt
│
├── models/
│   ├── __init__.py
│   ├── user.py
│   ├── course.py
│   ├── examination.py
│   ├── rubric.py
│   ├── examination_slot.py
│   ├── booking.py
│   └── examiner_profile.py
│
├── routes/
│   ├── __init__.py
│   ├── auth.py
│   ├── admin.py
│   ├── examiner.py
│   ├── student.py
│   ├── course.py
│   ├── examination.py
│   ├── rubric.py
│   ├── slot.py
│   ├── booking.py
│   └── evaluation.py
│
├── services/
│   ├── __init__.py
│   ├── course_service.py
│   ├── examination_service.py
│   ├── rubric_service.py
│   ├── slot_service.py
│   ├── booking_service.py
│   └── evaluation_service.py
│
├── templates/
│   ├── base.html
│   ├── index.html
│   ├── 404.html
│   ├── 403.html
│   │
│   ├── auth/
│   │   ├── login.html
│   │   ├── register_student.html
│   │   └── register_examiner.html
│   │
│   ├── admin/
│   │   ├── dashboard.html
│   │   ├── courses/
│   │   ├── examinations/
│   │   ├── rubrics/
│   │   ├── examiners/
│   │   ├── students/
│   │   ├── slots/
│   │   ├── bookings/
│   │   └── reports/
│   │
│   ├── examiner/
│   │   ├── dashboard.html
│   │   ├── examinations.html
│   │   ├── slots.html
│   │   ├── create_slot.html
│   │   ├── edit_slot.html
│   │   ├── students.html
│   │   ├── evaluate.html
│   │   └── profile.html
│   │
│   └── student/
│       ├── dashboard.html
│       ├── examinations.html
│       ├── examination_details.html
│       ├── slots.html
│       ├── bookings.html
│       ├── booking_history.html
│       ├── results.html
│       └── profile.html
│
├── static/
│   ├── css/
│   │   └── style.css
│   ├── js/
│   │   └── app.js
│   └── images/
│       └── logo.png
│
├── utils/
│   ├── __init__.py
│   ├── decorators.py
│   ├── validators.py
│   └── helpers.py
│
├── reports/
│   └── generated/
│
├── database.db
├── .env
├── .gitignore
└── README.md

The project structure separates the application's major responsibilities into models, routes, services, templates, static assets, utilities, and reports.


6. Core Components

6.1 Models

The models package represents the primary data entities of the application.

Major models include:

  • User
  • Course
  • Examination
  • Rubric
  • Examination Slot
  • Booking
  • Examiner Profile

The models define the structure of application data and provide the necessary database operations.


6.2 Routes

The routes package handles incoming HTTP requests and directs them to the appropriate application functionality.

The route modules cover:

  • Authentication
  • Student operations
  • Examiner operations
  • Administration
  • Course management
  • Examination management
  • Rubric management
  • Examination slot management
  • Booking management
  • Evaluation

Routes are responsible for handling requests while delegating major business operations to the service layer.


6.3 Services

The service layer contains the application's core business logic.

Examples include:

  • Course management
  • Examination management
  • Rubric management
  • Examination slot management
  • Booking management
  • Evaluation management

For example, a student booking operation follows:

Student
   │
   ▼
Booking Route
   │
   ▼
Booking Service
   │
   ▼
Booking Model
   │
   ▼
SQLite Database

This separation prevents route handlers from becoming unnecessarily complex and makes business logic easier to maintain and extend.


6.4 Templates

The templates directory contains the server-rendered HTML pages.

Templates are organized according to application roles and functionality:

templates/
├── auth/
├── admin/
├── examiner/
└── student/

Jinja2 is used to dynamically generate HTML pages using application data.

The templates support:

  • Authentication pages
  • Student dashboards
  • Examiner dashboards
  • Administrator dashboards
  • Examination pages
  • Booking pages
  • Evaluation pages
  • Result pages
  • Report pages

6.5 Static Assets

The static directory contains the presentation-layer resources.

static/
├── css/
├── js/
└── images/

It contains:

  • CSS stylesheets
  • JavaScript files
  • Images and application assets

These resources are shared across the server-rendered application pages.


7. User Roles and Functionality

App Dev 1 provides functionality according to three primary user roles.

7.1 Student

Students can:

  • Register and authenticate.
  • View available examinations.
  • View examination details.
  • View available examination slots.
  • Book examination slots.
  • View current bookings.
  • View booking history.
  • View examination results.
  • Manage their profile.

7.2 Examiner

Examiners can:

  • Register and authenticate.
  • View assigned examinations.
  • Manage examination slots.
  • View assigned students.
  • Evaluate students.
  • Apply examination rubrics.
  • View examination-related information.
  • Manage their profile.

7.3 Administrator

Administrators can:

  • Manage users.
  • Manage students.
  • Manage examiners.
  • Manage courses.
  • Manage examinations.
  • Manage rubrics.
  • Manage examination slots.
  • Manage bookings.
  • View reports.
  • Manage examination-related data.

8. Request/Response Flow

A typical App Dev 1 request follows the sequence below:

┌──────────────┐
│     User     │
└──────┬───────┘
       │ HTTP Request
       ▼
┌──────────────┐
│ Flask App    │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Route        │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Service      │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Model        │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ SQLite       │
│ Database     │
└──────┬───────┘
       │
       │ Data
       ▼
┌──────────────┐
│ Service      │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│ Jinja2       │
│ Template     │
└──────┬───────┘
       │ HTML Response
       ▼
┌──────────────┐
│     User     │
└──────────────┘

This flow demonstrates the complete server-side processing cycle from user request to generated HTML response.


9. Database and Data Management

SQLite is used as the primary persistent data store in App Dev 1.

The database maintains information related to:

  • Users
  • Courses
  • Examinations
  • Examination slots
  • Bookings
  • Rubrics
  • Evaluations
  • Examiner profiles
  • Results

The application follows a structured data-access approach in which routes communicate with services, services use models, and models interact with the SQLite database.

This approach provides a clear separation between request handling, business logic, and persistent data management.


10. Conclusion

App Dev 1 establishes the foundational version of the Examination Management Portal using Flask, Jinja2, and SQLite.

The monolithic architecture provides a straightforward development and deployment model while maintaining separation between routes, services, models, templates, and static assets.

The implementation establishes the essential examination-management functionality and provides the foundation for the more advanced architecture introduced in App Dev 2.


App Dev 2

1. Introduction

App Dev 2 extends the Examination Management Portal by introducing a decoupled frontend and backend architecture.

The frontend is developed using Vue.js, while Flask continues to provide backend functionality through RESTful APIs. The two applications communicate through HTTP-based API requests.

In addition to the architectural separation, App Dev 2 introduces:

  • Redis caching
  • Celery background processing
  • Dedicated reporting services
  • PDF generation
  • Excel export
  • CSV export
  • Reusable Vue.js components
  • Client-side routing
  • Dedicated frontend API services

The objective of App Dev 2 is to evolve the application from a server-rendered monolithic system into a more modular full-stack platform.


2. Objectives

The primary objectives of App Dev 2 are:

  • Separate the presentation layer from the backend application.
  • Develop a reusable Vue.js frontend.
  • Expose application functionality through REST APIs.
  • Maintain centralized business logic in Flask services.
  • Improve frontend maintainability through reusable components.
  • Introduce Redis-based caching.
  • Introduce asynchronous background processing using Celery.
  • Support automated reminders.
  • Generate reports efficiently.
  • Provide PDF, Excel, and CSV exports.
  • Improve separation of concerns.
  • Provide an architecture suitable for future expansion.

3. Technology Stack

Area Technology
Frontend Framework Vue.js
Build Tool Vite
Backend Framework Flask
Programming Language Python
Communication REST API / HTTP
Database SQLite
Cache Redis
Background Processing Celery
Reporting PDF
Data Export Excel / CSV
Frontend Routing Vue Router

The technology stack separates presentation responsibilities from backend processing while adding infrastructure for caching, asynchronous processing, reporting, and data export.


4. System Architecture

App Dev 2 follows a decoupled layered architecture consisting of a Vue.js frontend, Flask REST API backend, database, caching layer, and background-processing infrastructure.

┌─────────────────────────────────────────────┐
│                    USERS                    │
│       Student │ Examiner │ Administrator   │
└──────────────────────┬──────────────────────┘
                       │
                       ▼
┌─────────────────────────────────────────────┐
│              VUE.JS FRONTEND                │
│                                             │
│ Views │ Components │ Router │ API Services │
└──────────────────────┬──────────────────────┘
                       │
                  REST / HTTP
                       │
                       ▼
┌─────────────────────────────────────────────┐
│              FLASK REST API                 │
│                                             │
│ Routes │ Services │ Models │ Utilities      │
└───────────────┬─────────────────┬───────────┘
                │                 │
                ▼                 ▼
┌──────────────────────┐  ┌───────────────────┐
│   SQLITE DATABASE    │  │    REDIS CACHE    │
│   Persistent Data    │  │ Cached Data       │
└──────────────────────┘  └─────────┬─────────┘
                                    │
                                    ▼
                          ┌────────────────────┐
                          │  CELERY WORKERS    │
                          │                    │
                          │ Reminders          │
                          │ Reports            │
                          │ Data Exports       │
                          └─────────┬──────────┘
                                    │
                                    ▼
                          ┌────────────────────┐
                          │ REPORTS & EXPORTS  │
                          │                    │
                          │ PDF │ Excel │ CSV  │
                          └────────────────────┘

Architecture Characteristics

The architecture provides:

  • Independent frontend and backend development.
  • API-based communication.
  • Reusable frontend components.
  • Centralized backend business logic.
  • Persistent database storage.
  • Frequently accessed data caching.
  • Asynchronous background processing.
  • Dedicated reporting and export capabilities.
  • Clear separation between presentation and server-side responsibilities.

5. Project Structure

examination-management-portal/
│
├── backend/
│   ├── app.py
│   ├── config.py
│   ├── database.py
│   ├── requirements.txt
│   │
│   ├── models/
│   │   ├── __init__.py
│   │   ├── user.py
│   │   ├── course.py
│   │   ├── examination.py
│   │   ├── rubric.py
│   │   ├── examination_slot.py
│   │   ├── booking.py
│   │   ├── evaluation.py
│   │   └── examiner.py
│   │
│   ├── routes/
│   │   ├── __init__.py
│   │   ├── auth.py
│   │   ├── admin.py
│   │   ├── examiner.py
│   │   ├── student.py
│   │   ├── course.py
│   │   ├── examination.py
│   │   ├── rubric.py
│   │   ├── slot.py
│   │   ├── booking.py
│   │   ├── evaluation.py
│   │   └── report.py
│   │
│   ├── services/
│   │   ├── __init__.py
│   │   ├── course_service.py
│   │   ├── examination_service.py
│   │   ├── rubric_service.py
│   │   ├── slot_service.py
│   │   ├── booking_service.py
│   │   ├── evaluation_service.py
│   │   ├── report_service.py
│   │   └── export_service.py
│   │
│   ├── cache/
│   │   ├── __init__.py
│   │   └── redis_cache.py
│   │
│   ├── jobs/
│   │   ├── __init__.py
│   │   ├── celery_config.py
│   │   ├── daily_reminder.py
│   │   ├── monthly_report.py
│   │   └── examination_export.py
│   │
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── validators.py
│   │   ├── constants.py
│   │   └── helpers.py
│   │
│   ├── reports/
│   │   └── generated/
│   │
│   └── database.db
│
├── frontend/
│   ├── package.json
│   ├── vite.config.js
│   ├── index.html
│   │
│   ├── public/
│   │   ├── favicon.ico
│   │   └── images/
│   │
│   └── src/
│       ├── main.js
│       ├── App.vue
│       │
│       ├── assets/
│       │   └── styles.css
│       │
│       ├── components/
│       │   ├── Navbar.vue
│       │   ├── Sidebar.vue
│       │   ├── Footer.vue
│       │   ├── ExaminationCard.vue
│       │   ├── SlotCard.vue
│       │   ├── BookingCard.vue
│       │   ├── CourseCard.vue
│       │   ├── RubricTable.vue
│       │   ├── EvaluationForm.vue
│       │   ├── SearchBar.vue
│       │   ├── FilterPanel.vue
│       │   ├── Pagination.vue
│       │   ├── LoadingSpinner.vue
│       │   ├── ConfirmModal.vue
│       │   └── AlertMessage.vue
│       │
│       ├── views/
│       │   ├── Home.vue
│       │   ├── Login.vue
│       │   ├── Register.vue
│       │   ├── Profile.vue
│       │   ├── student/
│       │   ├── examiner/
│       │   └── admin/
│       │
│       ├── router/
│       │   └── index.js
│       │
│       └── services/
│           ├── api.js
│           ├── authService.js
│           ├── examinationService.js
│           ├── bookingService.js
│           └── reportService.js
│
├── templates/
│   └── index.html
│
├── static/
│   ├── css/
│   ├── js/
│   └── images/
│
├── .env
├── .gitignore
├── README.md
└── requirements.txt

The project structure separates the application into two primary areas:

  • backend/ — API, business logic, database, caching, reports, and background processing.
  • frontend/ — Vue.js interface, reusable components, views, routing, and API communication.

This structure provides a clear boundary between frontend and backend development.


6. Core Components

6.1 Backend

The backend contains all server-side functionality and exposes REST APIs consumed by the Vue.js frontend.

It is responsible for:

  • Processing API requests.
  • Validating input.
  • Applying business rules.
  • Managing database operations.
  • Handling authentication and authorization.
  • Managing cached data.
  • Generating reports.
  • Creating export files.
  • Scheduling and processing background tasks.

6.2 Backend Models

The models package represents the application's main data entities.

These include:

  • User
  • Course
  • Examination
  • Examination Slot
  • Booking
  • Evaluation
  • Rubric
  • Examiner

The models provide the data-access layer between the services and the SQLite database.


6.3 Backend Routes

The routes package exposes REST API endpoints.

The routes are organized according to functionality:

  • Authentication
  • Administration
  • Students
  • Examiners
  • Courses
  • Examinations
  • Rubrics
  • Examination Slots
  • Bookings
  • Evaluations
  • Reports

The routes receive API requests, validate required information, and delegate business operations to the appropriate service.


6.4 Backend Services

The service layer contains the primary business operations of the backend.

Examples include:

  • Creating and managing examinations.
  • Creating examination slots.
  • Managing student bookings.
  • Recording evaluations.
  • Managing rubrics.
  • Generating reports.
  • Exporting examination data.

The service layer provides separation between API request handling and application-specific business logic.


6.5 Backend Utilities

The utils package contains reusable backend utilities.

It includes functionality such as:

  • Input validation.
  • Application constants.
  • Helper functions.
  • Common backend operations.

This reduces code duplication and keeps the main application modules focused on their specific responsibilities.


6.6 Frontend

The frontend is implemented using Vue.js and provides the complete client-side user interface.

The frontend is organized into:

  • Reusable components.
  • Application views.
  • Vue Router.
  • Frontend API services.
  • Static assets.

The frontend communicates with the Flask backend through REST API requests.


6.7 Frontend Components

The components directory contains reusable interface elements.

Examples include:

  • Navigation bar
  • Sidebar
  • Footer
  • Examination cards
  • Slot cards
  • Booking cards
  • Course cards
  • Rubric tables
  • Evaluation forms
  • Search bars
  • Filter panels
  • Pagination
  • Loading indicators
  • Confirmation modals
  • Alert messages

Reusable components improve consistency, reduce duplication, and simplify frontend maintenance.


6.8 Frontend Views

Views represent complete application pages.

The application provides dedicated functionality for students, examiners, and administrators.

Student

Students can:

  • View available examinations.
  • View examination details.
  • View available examination slots.
  • Book examination slots.
  • View booking history.
  • View examination results.
  • Manage their profile.
Examiner

Examiners can:

  • View assigned examinations.
  • Manage examination slots.
  • View assigned students.
  • Evaluate students.
  • Manage their profile.
Administrator

Administrators can:

  • Manage users.
  • Manage courses.
  • Manage examinations.
  • Manage rubrics.
  • Manage examination slots.
  • Manage bookings.
  • View reports.
  • Export data.

6.9 Frontend Router

Vue Router manages navigation between frontend views.

Representative routes include:

/login

/student/dashboard
/student/examinations
/student/bookings
/student/results

/examiner/dashboard
/examiner/evaluations

/admin/dashboard
/admin/reports

The router allows the frontend to provide structured navigation without requiring a separate server-rendered page for every user interaction.


6.10 Frontend API Services

Frontend services provide a centralized interface for communication with the Flask REST API.

The communication flow is:

Vue View
   │
   ▼
Frontend Service
   │
   ▼
REST API
   │
   ▼
Flask Backend
   │
   ▼
Service Layer

Examples of frontend services include:

  • authService.js
  • examinationService.js
  • bookingService.js
  • reportService.js

This approach keeps API communication separate from visual components and makes the frontend easier to maintain.


7. User Roles and Functionality

App Dev 2 maintains the same primary user roles while providing functionality through the Vue.js frontend and Flask REST APIs.

7.1 Student

Students can:

  • Register and authenticate.
  • Access their dashboard.
  • Browse available examinations.
  • View examination details.
  • View available examination slots.
  • Book examination slots.
  • Manage bookings.
  • View booking history.
  • View examination results.
  • Manage their profile.

7.2 Examiner

Examiners can:

  • Authenticate and access their dashboard.
  • View assigned examinations.
  • Manage examination slots.
  • View assigned students.
  • Evaluate students.
  • Use examination rubrics.
  • Manage their profile.

7.3 Administrator

Administrators can:

  • Manage users.
  • Manage students and examiners.
  • Manage courses.
  • Manage examinations.
  • Manage rubrics.
  • Manage examination slots.
  • Manage bookings.
  • Generate reports.
  • Export examination data.

8. Request/Response Flow

A normal App Dev 2 request follows the sequence below:

┌──────────────┐
│     User     │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│   Vue.js     │
│   Frontend   │
└──────┬───────┘
       │ HTTP / REST API
       ▼
┌──────────────┐
│ Flask Route  │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│   Service    │
│    Layer     │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│    Model     │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│    SQLite    │
│   Database   │
└──────┬───────┘
       │
       │ JSON Response
       ▼
┌──────────────┐
│   Vue.js     │
│   Frontend   │
└──────┬───────┘
       │
       ▼
┌──────────────┐
│     User     │
└──────────────┘

For cached operations, Redis can be checked before accessing the database.

For long-running operations, the backend can delegate processing to Celery instead of performing the entire operation during the user's request.

This provides a clear separation between frontend interaction, API processing, business logic, database operations, and background processing.


9. Redis Caching and Background Processing

App Dev 2 introduces Redis and Celery to improve application performance and processing capabilities.

9.1 Redis Caching

Redis is introduced as a caching layer for frequently accessed or temporary data.

The general caching process is:

┌────────────────┐
│     Request    │
└───────┬────────┘
        │
        ▼
┌────────────────┐
│  Redis Cache   │
└───────┬────────┘
        │
   ┌────┴─────┐
   │          │
   ▼          ▼
 Found     Not Found
   │          │
   ▼          ▼
Return     SQLite
Cached     Database
Data          │
              ▼
        Store in Redis
              │
              ▼
         Return Data

Redis can be used for:

  • Examination information.
  • Configuration data.
  • Frequently accessed application data.
  • Temporary results.

Caching reduces unnecessary database access and can improve response performance for frequently requested information.


9.2 Celery Background Processing

Celery provides asynchronous background processing for operations that do not need to execute during the user's immediate request.

Examples include:

  • Daily examination reminders.
  • Monthly report generation.
  • Examination data exports.
  • Scheduled operations.
  • Other long-running tasks.

The processing flow is:

┌────────────────┐
│ Flask Backend  │
└───────┬────────┘
        │
        │ Create Task
        ▼
┌────────────────┐
│ Celery Queue   │
└───────┬────────┘
        │
        ▼
┌────────────────┐
│ Celery Worker  │
└───────┬────────┘
        │
        ▼
┌─────────────────────────────┐
│ Background Operation        │
│                             │
│ Report / Export / Reminder  │
└──────────────┬──────────────┘
               │
               ▼
┌─────────────────────────────┐
│ Generated Output            │
│                             │
│ PDF / Excel / CSV / Alert   │
└─────────────────────────────┘

This architecture prevents longer-running operations from unnecessarily blocking normal application requests.


10. Reports and Data Export

App Dev 2 provides dedicated reporting and export services.

The system supports the following formats:

Format Purpose
PDF Formal reports and examination records
Excel Administrative analysis and structured data
CSV Data exchange and external processing

The reporting architecture supports both immediate and asynchronous processing.

For smaller operations, reports can be generated during the request. For larger operations, the backend can create a Celery task that performs the report or export in the background.


11. Database and Data Management

SQLite continues to provide persistent data storage in App Dev 2.

The database maintains information related to:

  • Users
  • Courses
  • Examinations
  • Examination slots
  • Bookings
  • Rubrics
  • Evaluations
  • Examiner profiles
  • Results

The major difference from App Dev 1 is that database access is now performed behind a REST API and service layer rather than directly through server-rendered templates.

The overall data flow is:

Vue.js Frontend
       │
       ▼
Flask REST API
       │
       ▼
Service Layer
       │
       ▼
Model Layer
       │
       ▼
SQLite Database

Redis can be used between the service layer and database for appropriate cached operations.


12. Conclusion

App Dev 2 builds upon the foundation established in App Dev 1 by introducing a more modular and scalable application architecture.

The Vue.js frontend separates presentation responsibilities from the Flask backend, while REST APIs provide structured communication between the two layers.

Redis introduces a dedicated caching layer for frequently accessed data, while Celery enables asynchronous processing for reminders, reports, and data exports.

The overall progression can be represented as:

APP DEV 1
────────────────────────────

Flask
   +
Jinja2
   +
SQLite
   ↓
Monolithic Examination
Management Application
APP DEV 2
────────────────────────────

Vue.js
   +
Flask REST API
   +
SQLite
   +
Redis
   +
Celery
   ↓
Decoupled Full-Stack
Examination Management Platform

The two development stages demonstrate the evolution of the Examination Management Portal from a server-rendered monolithic Flask application into a decoupled full-stack system with a dedicated frontend, REST API backend, caching infrastructure, asynchronous processing, reporting, and data-export capabilities.

Archive

More
Stories.

Back To Stories