1. App Dev 1

Project Architecture

examination-management-portal/
│
├── app.py
├── config.py
├── database.py
├── requirements.txt
│
├── models/
│   ├── user.py
│   ├── student.py
│   ├── examiner.py
│   ├── course.py
│   ├── examination.py
│   ├── examination_slot.py
│   ├── booking.py
│   ├── evaluation.py
│   ├── rubric.py
│   └── result.py
│
├── routes/
│   ├── auth.py
│   ├── student.py
│   ├── examiner.py
│   ├── admin.py
│   ├── course.py
│   ├── examination.py
│   ├── booking.py
│   ├── evaluation.py
│   ├── result.py
│   └── report.py
│
├── services/
│   ├── auth_service.py
│   ├── course_service.py
│   ├── examination_service.py
│   ├── booking_service.py
│   ├── evaluation_service.py
│   ├── result_service.py
│   └── report_service.py
│
├── templates/
│   ├── base.html
│   ├── auth/
│   ├── student/
│   ├── examiner/
│   ├── admin/
│   ├── examination/
│   ├── booking/
│   ├── evaluation/
│   ├── result/
│   └── reports/
│
├── static/
│   ├── css/
│   ├── js/
│   └── images/
│
├── utils/
│   ├── validators.py
│   ├── decorators.py
│   ├── helpers.py
│   └── constants.py
│
├── reports/
│   ├── generated/
│   └── templates/
│
├── database.db
├── .env
├── .gitignore
└── README.md

Layer Structure

User
 │
 ▼
Jinja2 Templates
 │
 ▼
Flask Routes
 │
 ▼
Service Layer
 │
 ▼
Model Layer
 │
 ▼
SQLite Database

Main Components

Component Responsibility
app.py Flask application entry point
config.py Application configuration
database.py SQLite connection and initialization
models/ Database entities and data operations
routes/ Request handling and page navigation
services/ Application business logic
templates/ Jinja2 server-rendered pages
static/ CSS, JavaScript and images
utils/ Validation, decorators and helpers
reports/ Report generation
database.db SQLite database
.env Environment configuration

Request Flow

Student / Examiner / Admin
            │
            ▼
      Jinja2 Web Page
            │
            ▼
       Flask Route
            │
            ▼
       Service Layer
            │
            ▼
        Model Layer
            │
            ▼
        SQLite DB
            │
            ▼
     Flask Response
            │
            ▼
        HTML Page

2. App Dev 2

Project Architecture

examination-management-portal/
│
├── backend/
│   ├── app.py
│   ├── config.py
│   ├── database.py
│   ├── requirements.txt
│   │
│   ├── models/
│   │   ├── user.py
│   │   ├── student.py
│   │   ├── examiner.py
│   │   ├── course.py
│   │   ├── examination.py
│   │   ├── examination_slot.py
│   │   ├── booking.py
│   │   ├── evaluation.py
│   │   ├── rubric.py
│   │   └── result.py
│   │
│   ├── routes/
│   │   ├── auth.py
│   │   ├── students.py
│   │   ├── examiners.py
│   │   ├── admin.py
│   │   ├── courses.py
│   │   ├── examinations.py
│   │   ├── bookings.py
│   │   ├── evaluations.py
│   │   ├── results.py
│   │   └── reports.py
│   │
│   ├── services/
│   │   ├── auth_service.py
│   │   ├── course_service.py
│   │   ├── examination_service.py
│   │   ├── booking_service.py
│   │   ├── evaluation_service.py
│   │   ├── result_service.py
│   │   └── report_service.py
│   │
│   ├── cache/
│   │   ├── redis_client.py
│   │   └── cache_service.py
│   │
│   ├── jobs/
│   │   ├── celery_app.py
│   │   ├── report_jobs.py
│   │   ├── export_jobs.py
│   │   └── reminder_jobs.py
│   │
│   ├── utils/
│   │   ├── validators.py
│   │   ├── decorators.py
│   │   ├── helpers.py
│   │   └── constants.py
│   │
│   ├── reports/
│   │   ├── generated/
│   │   ├── templates/
│   │   └── exporters/
│   │       ├── pdf_exporter.py
│   │       ├── excel_exporter.py
│   │       └── csv_exporter.py
│   │
│   └── database.db
│
├── frontend/
│   ├── package.json
│   ├── vite.config.js
│   │
│   ├── public/
│   │
│   └── src/
│       ├── components/
│       │   ├── Navbar.vue
│       │   ├── Sidebar.vue
│       │   ├── Modal.vue
│       │   ├── Table.vue
│       │   ├── Form.vue
│       │   └── Pagination.vue
│       │
│       ├── views/
│       │   ├── Login.vue
│       │   ├── Dashboard.vue
│       │   ├── Students.vue
│       │   ├── Examinations.vue
│       │   ├── Bookings.vue
│       │   ├── Evaluations.vue
│       │   ├── Results.vue
│       │   └── Reports.vue
│       │
│       ├── router/
│       │   └── index.js
│       │
│       ├── services/
│       │   ├── api.js
│       │   ├── authService.js
│       │   ├── examinationService.js
│       │   ├── bookingService.js
│       │   ├── evaluationService.js
│       │   └── reportService.js
│       │
│       ├── assets/
│       │   ├── css/
│       │   ├── images/
│       │   └── icons/
│       │
│       ├── App.vue
│       └── main.js
│
├── .env
├── .gitignore
└── README.md

Layer Structure

User
 │
 ▼
Vue.js Frontend
 │
 ├── Components
 ├── Views
 ├── Vue Router
 └── API Services
 │
 ▼
HTTP / REST API
 │
 ▼
Flask Backend
 │
 ├── API Routes
 ├── Services
 └── Models
 │
 ▼
SQLite Database

Main Components

Component Responsibility
backend/app.py Flask REST API entry point
backend/config.py Backend configuration
backend/database.py SQLite connection and initialization
backend/models/ Database entities and data operations
backend/routes/ REST API endpoints
backend/services/ Application business logic
backend/cache/ Redis caching
backend/jobs/ Celery background tasks
backend/utils/ Validation, decorators and helpers
backend/reports/ Reports and file exports
frontend/components/ Reusable Vue components
frontend/views/ Application pages
frontend/router/ Client-side routing
frontend/services/ API communication
frontend/assets/ CSS, images and icons
SQLite Persistent application data
Redis Cached data
Celery Background processing

Request Flow

Student / Examiner / Admin
            │
            ▼
         Vue.js UI
            │
            ▼
     Vue Components
            │
            ▼
       API Service
            │
            ▼
     Flask REST API
            │
            ▼
       Service Layer
            │
            ▼
        Model Layer
            │
            ▼
        SQLite DB

Supporting Services

                    Flask Backend
                         │
             ┌───────────┴───────────┐
             │                       │
             ▼                       ▼
          Redis                    Celery
          Cache                 Background Jobs
                                     │
                    ┌────────────────┼────────────────┐
                    ▼                ▼                ▼
                 Reports           Exports         Reminders
                                     │
                              ┌──────┼──────┐
                              ▼      ▼      ▼
                             PDF   Excel    CSV

3. App Dev 1 vs App Dev 2

Area App Dev 1 App Dev 2
Architecture Monolithic Decoupled
Frontend Jinja2 Vue.js
Backend Flask Flask REST API
Database SQLite SQLite
Frontend Location templates/ frontend/src/
Backend Location Project root backend/
UI Server-rendered HTML Vue components
Routing Flask Routes Vue Router + Flask Routes
API Internal Flask routes REST API
Business Logic Flask Services Flask Services
API Services Not separate Frontend API layer
Caching — Redis
Background Jobs — Celery
Reports Basic Dedicated reporting
Export Basic PDF / Excel / CSV
Communication Server-side rendering HTTP / REST
Frontend / Backend Combined Separate
Reusability Template-based Component-based
Scalability Basic More modular
Complexity Lower Higher

4. Overall Structural Progression

App Dev 1

APP DEV 1
    │
    ├── Frontend
    │     └── Jinja2
    │
    ├── Backend
    │     └── Flask
    │
    └── Database
          └── SQLite
Single Flask Application
        ↓
Routes + Services + Models
        ↓
Jinja2 Templates
        ↓
SQLite

App Dev 2

APP DEV 2
    │
    ├── Frontend
    │     └── Vue.js
    │
    ├── Backend
    │     └── Flask REST API
    │
    ├── Database
    │     └── SQLite
    │
    ├── Cache
    │     └── Redis
    │
    └── Background Processing
          └── Celery
Vue.js Frontend
        ↓
REST API
        ↓
Flask Backend
        ↓
Services + Models
        ↓
SQLite
        │
        ├── Redis
        │
        └── Celery

5. Key Structural Difference

APP DEV 1

Frontend + Backend
       │
       ▼
Single Flask Application
       │
       ▼
    SQLite
APP DEV 2

Vue.js Frontend
       │
       ▼
Flask REST API
       │
       ▼
Backend Services
       │
       ├── SQLite
       ├── Redis
       └── Celery
App Dev 1 App Dev 2
Monolithic application Decoupled application
Jinja2 frontend Vue.js frontend
Flask page routes Flask REST API
Server-side rendering Client-side rendering
Basic structure Modular structure
No dedicated cache Redis cache
No background worker Celery worker
Basic reports Advanced reports and exports

In short: App Dev 1 establishes the core examination management system using a monolithic Flask architecture, while App Dev 2 evolves it into a decoupled full-stack architecture with Vue.js, REST APIs, Redis caching, Celery background jobs, and dedicated reporting/export services.

Archive

More
Stories.

Back To Stories