# shailux8/web-assignments architecture

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

- Interactive diagram: https://gitdiagram.com/shailux8/web-assignments
- Repository: https://github.com/shailux8/web-assignments

## Overview

##### Project type and purpose
- This “web-assignments” repository is a collection of small web‐development exercises rather than one monolithic application.
- Assignments 1–4 are purely frontend (HTML/CSS/JS), demonstrating static pages and DOM manipulation.
- Assignment 5 adds simple server‐side components: Java Servlets (with filters, request dispatchers, session management) and a Python script for form processing.

##### File structure
- Top level:
- README.md – project title only (“web-assignments”)
- assignment-1 … assignment-5 – five separate folders
- assignment-1 through assignment-4: each contains HTML, CSS, and JS, organized by subtopics (e.g., college pages, tours, sections A–E).
- assignment-5: subdivided into form submission examples in Java and Python plus demos of Servlet API, ServletConfig, Filters, Sessions, RequestDispatcher.

##### README for additional insights
- The README only gives the project name. There’s no higher‐level architecture described.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["Browser"]:::client

    Browser -->|"HTTP GET"| StaticServer["Static File Server"]:::static

    subgraph "Static Frontend Modules"
        StaticServer
        A1["Assignment 1: College Home Page"]:::static
        A2C["Assignment 2: College Pages"]:::static
        A2T["Assignment 2: Tour Pages"]:::static
        A2Q["Assignment 2: Questions Pages"]:::static
        A3["Assignment 3: index.html"]:::static
        A4A["Assignment 4: Advanced (chatbot, to-do)"]:::static
        A4A --> A4A1["chatbot.html"]:::static
        A4A --> A4A2["to-do-list.html"]:::static
        A4SA["Assignment 4: Section A (vars.js)"]:::static
        A4SB["Assignment 4: Section B (add, confirm, submit-alert)"]:::static
        A4SC["Assignment 4: Section C (changes, dynamic-list, hovering)"]:::static
        A4SD["Assignment 4: Section D (validation)"]:::static
        A4SE["Assignment 4: Section E (check, date-time, random, weather)"]:::static

        StaticServer --> A1
        StaticServer --> A2C
        StaticServer --> A2T
        StaticServer --> A2Q
        StaticServer --> A3
        StaticServer --> A4A
        StaticServer --> A4SA
        StaticServer --> A4SB
        StaticServer --> A4SC
        StaticServer --> A4SD
        StaticServer --> A4SE

        click A1 "https://github.com/shailux8/web-assignments/tree/main/assignment-1/IET DAVV HOME PAGE/"
        click A2C "https://github.com/shailux8/web-assignments/tree/main/assignment-2/college/"
        click A2T "https://github.com/shailux8/web-assignments/tree/main/assignment-2/tour/"
        click A2Q "https://github.com/shailux8/web-assignments/tree/main/assignment-2/"
        click A3 "https://github.com/shailux8/web-assignments/tree/main/assignment-3/"
        click A4A "https://github.com/shailux8/web-assignments/tree/main/assignment-4/advance/"
        click A4SA "https://github.com/shailux8/web-assignments/blob/main/assignment-4/sec-A/vars.js"
        click A4SB "https://github.com/shailux8/web-assignments/tree/main/assignment-4/sec-B/"
        click A4SC "https://github.com/shailux8/web-assignments/tree/main/assignment-4/sec-C/"
        click A4SD "https://github.com/shailux8/web-assignments/blob/main/assignment-4/sec-D/validation.html"
        click A4SE "https://github.com/shailux8/web-assignments/tree/main/assignment-4/sec-E/"
    end

    Browser -->|"HTTP POST (Java)"| ServletContainer["Servlet Container"]:::java
    Browser -->|"HTTP POST (Python)"| PythonRuntime["Python Runtime"]:::python

    subgraph "Dynamic Backend Modules"
        subgraph "Java Web App Stack"
            SC["Servlet Container"]:::java
            Filters["Filters (AuthFilter, LoggingFilter)"]:::java
            Servlets["Servlets"]:::java
            Dispatcher["RequestDispatcher Flow"]:::java
            JSPViews["JSP/HTML Views"]:::static
            SessionMgmt["Session Management"]:::java

            SC --> Filters
            Filters --> Servlets
            Servlets --> Dispatcher
            Dispatcher --> JSPViews
            SC --> SessionMgmt

            click SC "https://github.com/shailux8/web-assignments/tree/main/assignment-5/Servlet-api/"
            click Filters "https://github.com/shailux8/web-assignments/tree/main/assignment-5/filters/"
            click Servlets "https://github.com/shailux8/web-assignments/tree/main/assignment-5/Servlet-api/"
            click Dispatcher "https://github.com/shailux8/web-assignments/tree/main/assignment-5/request dispatcher/"
            click SessionMgmt "https://github.com/shailux8/web-assignments/tree/main/assignment-5/Sessions/"
        end

        subgraph "Python Script Stack"
            PyHTML["index.html"]:::static
            PyScript["process.py"]:::python

            PythonRuntime --> PyHTML
            PyHTML -->|"form submission"| PyScript

            click PyHTML "https://github.com/shailux8/web-assignments/tree/main/assignment-5/Form submission py/"
            click PyScript "https://github.com/shailux8/web-assignments/blob/main/assignment-5/Form submission py/process.py"
        end
    end

    classDef client fill:#f9f,stroke:#333,stroke-width:1px
    classDef static fill:#bbf,stroke:#333,stroke-width:1px
    classDef java fill:#bfb,stroke:#333,stroke-width:1px
    classDef python fill:#ffb,stroke:#333,stroke-width:1px
```
