Skip to content

About

Full-stack student results system built with Flask, SQLite, and PDF generation support.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Results Checker

A Flask-based web app to search student exam results by exam number and name. It shows results in the browser and lets users download a PDF report.

Features

  • Result search by exam number and student name
  • Arabic/English UI with RTL/LTR support
  • PDF export for the displayed result
  • JSON API endpoint for programmatic access
  • Responsive layout for mobile and desktop

Tech Stack

  • Backend: Flask (Python)
  • Database: SQLite
  • PDF: ReportLab
  • Frontend: HTML, CSS, JavaScript

Requirements

  • Python 3.7+
  • SQLite (bundled with Python)

Setup

  1. Install dependencies:

    pip install -r requirements.txt
  2. Database (SQLite): students.db

    • Table schema:
      CREATE TABLE students (
        exam_number TEXT,
        name TEXT,
        math REAL,
        arabic REAL,
        english REAL,
        total REAL
      );
    • Example row:
      INSERT INTO students (exam_number, name, math, arabic, english, total)
      VALUES ('12345', 'John Doe', 85.5, 90.0, 88.0, 263.5);
  3. Run the app:

    python app.py
  4. Open in browser:

Usage

  • Web UI:

    • Enter exam_number and name.
    • Click “Check Result”.
    • Download the PDF from the result card.
  • API:

    • Endpoint: POST /api/check
    • JSON body:
      {"exam_number": "123", "name": "John Doe"}
    • Responses:
      • 200: { "success": true, "student": { ... } }
      • 400/404: { "success": false, "error": "..." }
  • PDF:

    • Endpoint: POST /pdf
    • Form fields: exam_number, name

Project Structure

.
├── app.py
├── students.db
├── templates/
│   └── index.html
├── static/
│   ├── css/
│   │   └── style.css
│   ├── js/
│   │   └── script.js
│   └── img/
│       └── Mitan.jpg
└── README.md

Project Status

This project is not fully complete yet. Some features are still in progress and will be improved in future updates.

Contributing

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Submit a pull request.

Project Status

This project is still a work in progress 🚀

About

Full-stack student results system built with Flask, SQLite, and PDF generation support.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages