# khushiiagarwal/webt architecture

> Architecture diagram of the GitHub repository khushiiagarwal/webt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/khushiiagarwal/webt
- Repository: https://github.com/khushiiagarwal/webt

## Overview

##### Project Type and Purpose
- This is a monorepo of “Web Technology Mini Projects,” each a standalone web‐app or demo illustrating different stacks (static HTML/JS/CSS, PHP+MySQL, React+Node, Spring Boot, etc.).
- The README lists 28 problem statements (e.g., electricity‑bill calculator in PHP, CRUD apps in Spring Boot, React‐Node bookstore, static JS sorting demos, etc.), so our “system” is really a portfolio of independent web‑apps.

##### File Structure
- Top‑level directories (e.g., “Attendance Marking PhpMysql”, “Bookstore react‑nodejs”, “Restaurant‑Springboot”, “Semester_Result_Calculation”, “CRUD (SpringBoot)”) each host a separate mini‑project.
- Each contains subfolders by layer:
- PHP apps: `.php` endpoints + `database.txt` or `.sql`.
- React apps: `src/`, `public/`, `package.json`, `server.js`.
- Spring Boot apps: `pom.xml`, `src/main/java/.../controller`, `/entity`, `/repository`, `/resources/templates`.
- Shared config: XAMPP for PHP, Node/NPM for React/Node, Maven for Spring Boot.

##### Readme Insights
- Problem statements group by technology and feature set.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Attendance Marking PHP+MySQL
    subgraph "Attendance Marking (PHP + MySQL)"
        AM_UI["Browser UI"]:::frontend
        AM_PHP["mark_attendance.php"]:::backend
        AM_DB[(MySQL Database)]:::database
    end
    AM_UI -->|"HTTP"| AM_PHP
    AM_PHP -->|"SQL"| AM_DB

    %% BookStore React + Node.js
    subgraph "BookStore (React + Node.js)"
        BS_UI["React SPA"]:::frontend
        BS_API["Express API (server.js)"]:::backend
        BS_Data[(Local JSON/TXT)]:::database
    end
    BS_UI -->|"REST API"| BS_API
    BS_API -->|"Read/Write"| BS_Data

    %% Bookstore Spring Boot + React
    subgraph "Bookstore (Spring Boot + React)"
        SB_UI["React SPA"]:::frontend
        SB_Controller["BookController.java"]:::backend
        SB_Entity["book.java"]:::backend
        SB_Repo["bookRepository.java"]:::database
        SB_DB[(MySQL via JPA)]:::database
    end
    SB_UI -->|"REST API"| SB_Controller
    SB_Controller -->|"Uses Entity"| SB_Entity
    SB_Controller -->|"CRUD"| SB_Repo
    SB_Repo -->|"JPA"| SB_DB

    %% Student CRUD Spring Boot
    subgraph "Student CRUD (Spring Boot)"
        SC_UI["Thymeleaf Templates"]:::frontend
        SC_Controller["StudentController.java"]:::backend
        SC_Service["StudentService / StudentServiceImpl"]:::backend
        SC_Entity["Student.java"]:::backend
        SC_Repo["StudentRepository.java"]:::database
        SC_DB[(MySQL via JPA)]:::database
    end
    SC_UI -->|"HTTP"| SC_Controller
    SC_Controller -->|"Calls Service"| SC_Service
    SC_Service -->|"Uses Entity"| SC_Entity
    SC_Service -->|"CRUD"| SC_Repo
    SC_Repo -->|"JPA"| SC_DB

    %% Electricity Bill Spring Boot
    subgraph "Electricity Bill Calculator (Spring Boot)"
        EB_UI_SB["Thymeleaf Template (index.html)"]:::frontend
        EB_Controller_SB["IndexController.java"]:::backend
        EB_App_SB["BillApplication.java"]:::backend
        EB_DB_SB[(MySQL via JPA)]:::database
    end
    EB_UI_SB -->|"HTTP"| EB_Controller_SB
    EB_Controller_SB -->|"Bootstraps via"| EB_App_SB
    EB_App_SB -->|"JPA"| EB_DB_SB

    %% Electricity Bill PHP+MySQL
    subgraph "Electricity Bill Calculator (PHP + MySQL)"
        EB_UI_PHP["display.html / login.html / register.html"]:::frontend
        EB_Calc["calculate.php"]:::backend
        EB_DBConn["db.php"]:::backend
        EB_DB_PHP[(MySQL Database)]:::database
    end
    EB_UI_PHP -->|"Form POST"| EB_Calc
    EB_Calc -->|"Includes"| EB_DBConn
    EB_DBConn -->|"SQL"| EB_DB_PHP

    %% External Tools
    subgraph "External Tools"
        XAMPP["XAMPP (Apache/PHP)"]:::external
        NodeJS["Node.js / NPM"]:::external
        Maven["Maven & mvnw"]:::external
        Postman["Postman"]:::external
    end
    XAMPP --> AM_PHP
    XAMPP --> EB_Calc
    NodeJS --> BS_API
    NodeJS --> SB_UI
    Maven --> SB_Controller
    Maven --> SC_Controller
    Maven --> EB_App_SB
    Postman -.-> SB_Controller
    Postman -.-> BS_API

    %% Click Events
    click AM_PHP "https://github.com/khushiiagarwal/webt/blob/main/Attendance Marking PhpMysql/mark_attendance.php"
    click AM_DB "https://github.com/khushiiagarwal/webt/blob/main/Attendance Marking PhpMysql/database.txt"
    click BS_UI "https://github.com/khushiiagarwal/webt/blob/main/BookStore-React Nodejs/App.js"
    click BS_API "https://github.com/khushiiagarwal/webt/blob/main/BookStore-React Nodejs/server.js"
    click BS_Data "https://github.com/khushiiagarwal/webt/blob/main/BookStore-React Nodejs/data.txt"
    click BS_UI "https://github.com/khushiiagarwal/webt/blob/main/BookStore-React Nodejs/package.json"
    click SB_UI "https://github.com/khushiiagarwal/webt/blob/main/Bookstore(using springboot and React)/React files/App.js"
    click SB_Controller "https://github.com/khushiiagarwal/webt/blob/main/Bookstore(using springboot and React)/Springboot files/bookstore/src/main/java/com/example/bookstore/controller/BookController.java"
    click SB_Entity "https://github.com/khushiiagarwal/webt/blob/main/Bookstore(using springboot and React)/Springboot files/bookstore/src/main/java/com/example/bookstore/entity/book.java"
    click SB_Repo "https://github.com/khushiiagarwal/webt/blob/main/Bookstore(using springboot and React)/Springboot files/bookstore/src/main/java/com/example/bookstore/repository/bookRepository.java"
    click Maven "https://github.com/khushiiagarwal/webt/blob/main/bookstore/pom.xml"
    click SC_UI "https://github.com/khushiiagarwal/webt/tree/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/resources/templates/"
    click SC_Controller "https://github.com/khushiiagarwal/webt/blob/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/java/com/example/Student_CRUD/controller/StudentController.java"
    click SC_Entity "https://github.com/khushiiagarwal/webt/blob/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/java/com/example/Student_CRUD/entity/Student.java"
    click SC_Repo "https://github.com/khushiiagarwal/webt/blob/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/java/com/example/Student_CRUD/repository/StudentRepository.java"
    click SC_Service "https://github.com/khushiiagarwal/webt/blob/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/java/com/example/Student_CRUD/service/StudentService.java"
    click SC_Service "https://github.com/khushiiagarwal/webt/blob/main/CRUD (SpringBoot)/Student_CRUD/Student_CRUD/src/main/java/com/example/Student_CRUD/service/StudentServiceImpl.java"
    click SC_Controller "https://github.com/khushiiagarwal/webt/blob/main/Student_CRUD/pom.xml"
    click EB_UI_SB "https://github.com/khushiiagarwal/webt/blob/main/Electrcity-bill-Springboot/src/main/resources/templates/index.html"
    click EB_Controller_SB "https://github.com/khushiiagarwal/webt/blob/main/Electrcity-bill-Springboot/src/main/java/com/example/bill/IndexController.java"
    click EB_App_SB "https://github.com/khushiiagarwal/webt/blob/main/Electrcity-bill-Springboot/src/main/java/com/example/bill/BillApplication.java"
    click Maven "https://github.com/khushiiagarwal/webt/blob/main/Electrcity-bill-Springboot/pom.xml"
    click EB_UI_PHP "https://github.com/khushiiagarwal/webt/blob/main/Electricity Bill -PhpMysql/display.html"
    click EB_Calc "https://github.com/khushiiagarwal/webt/blob/main/Electricity Bill -PhpMysql/calculate.php"
    click EB_DBConn "https://github.com/khushiiagarwal/webt/blob/main/Electricity Bill -PhpMysql/db.php"
    click EB_UI_PHP "https://github.com/khushiiagarwal/webt/blob/main/Electricity Bill -PhpMysql/login.php"
    click EB_UI_PHP "https://github.com/khushiiagarwal/webt/blob/main/Electricity Bill -PhpMysql/register.php"

    %% Styles
    classDef frontend fill:#BBDEFB,stroke:#0D47A1,stroke-width:1px
    classDef backend fill:#C8E6C9,stroke:#1B5E20,stroke-width:1px
    classDef database fill:#FFE0B2,stroke:#E65100,stroke-width:1px
    classDef external fill:#E0E0E0,stroke:#424242,stroke-width:1px
```
