# jaitensahu/project-dr.pathlab architecture

> Architecture diagram of the GitHub repository jaitensahu/project-dr.pathlab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaitensahu/project-dr.pathlab
- Repository: https://github.com/jaitensahu/project-dr.pathlab

## Overview

##### Project Type and Purpose
- This is a **static frontend web application**: a faithful clone of the Dr. Lal PathLabs website.
- Purpose: Client‐side UI only, built with HTML, CSS (Tailwind), and JavaScript libraries. Hosted as static assets (e.g., on GitHub Pages).

##### Main Components
a. **Developer Workstation**
- Source directories for each section (About_us, Book_a_test, Bussiness, Contact_us, Doctors, Investors, Patients) under `/src`.
- Configuration files: `tailwind.config.js`, `package.json` & `package-lock.json`.
- Node.js tooling (Tailwind CLI, postcss, local dev server).
b. **Build Pipeline**
- Tailwind CSS processing: `/src/input.css` → build → `/dist/output.css`.
- Asset bundling: Copying HTML, JS libraries (Flickity, AOS, FontAwesome), images into `/dist`.
c. **Static Hosting**
- GitHub Pages or any CDN.
- Destination: `/dist` folders for each section, plus top‐level `Patients/index.html`.
d. **Client Browser**
- Loads HTML, CSS, JS.
- Renders UI, executes Flickity carousels, AOS animations.
e. **External Libraries/CDNs**
- Flickity (local `flickity.pkgd.js` or CDN).
- AOS (Animation on Scroll).

##### Relationships and Data Flow
- **Developer Workstation → Build Pipeline**:
- Node.js reads `tailwind.config.js`, processes `/src/input.css` → `/dist/output.css`.
- Copy HTML templates and JS libs into `/dist`.
- **Build Pipeline → Static Hosting**:
- Deploy `/dist` folders for each section to GitHub Pages.
- **Client Browser ↔ Static Hosting**:
- Browser sends HTTP(S) requests for HTML, CSS, JS, images.
- Browser renders pages, interacts with UI libraries.
- **Client Browser ← External CDNs** (optional):
- If using CDN links for AOS or Font Awesome.

##### Architectural Patterns & Design Principles
- **Modular Multi‐Page Layout**: Each site section is a self‐contained module.
- **Static Site Deployment**: No runtime server logic; purely client‐side.
- **Asset Pipeline**: Source files → build → optimized assets.
- **Separation of Concerns**:
- HTML for structure,
- Tailwind CSS for styling,
- JS libraries for interactive behaviors.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Developer Workstation"
        style Developer_Workstation fill:#cce5ff,stroke:#004085
        WS1["About_us/src/input.css"]
        WS2["About_us/tailwind.config.js"]
        WS3["Book_a_test/src/input.css"]
        WS4["Book_a_test/tailwind.config.js"]
        WS5["Book_a_test/package.json"]
        WS6["Contact_us/src/input.css"]
        WS7["Contact_us/tailwind.config.js"]
        WS8["Investors/src/investors.css"]
        WS9["Investors/tailwind.config.js"]
    end

    subgraph "Build Pipeline"
        style Build_Pipeline fill:#fff3cd,stroke:#856404
        BP1["About_us: input.css→dist/output.css"]
        BP2["Book_a_test: input.css→dist/output.css"]
        BP3["Contact_us: input.css→dist/output.css"]
        BP4["Investors: investors.css→dist/output.css"]
    end

    subgraph "Static Hosting (GitHub Pages)"
        style Static_Hosting fill:#cce5ff,stroke:#004085
        HT1["About_us/dist"]
        HT2["Book_a_test/dist"]
        HT3["Contact_us/dist"]
        HT4["Investors/dist"]
        HT5["Patients/"]
    end

    subgraph "Client Browser"
        style Client_Browser fill:#d4edda,stroke:#155724
        BR["Browser"]
        AP["About_us/about.html"]
        BPg["Book_a_test/dist/book_a_test.html"]
        CP["Contact_us/contact.html"]
        DP["Doctors/doctors.html"]
        IP["Investors/dist/investors.html"]
        PP["Patients/index.html"]
    end

    subgraph "External Libraries/CDNs"
        style External_Libraries fill:#fff3cd,stroke:#856404
        EX1["Flickity JS/CSS"]
        EX2["AOS"]
        EX3["Font Awesome"]
    end

    %% Connections
    WS1 & WS2 & WS3 & WS4 & WS5 & WS6 & WS7 & WS8 & WS9 -->|"build: npm run build"| BP1 & BP2 & BP3 & BP4
    BP1 & BP2 & BP3 & BP4 -->|"deploy /dist"| HT1 & HT2 & HT3 & HT4 & HT5
    HT1 & HT2 & HT3 & HT4 & HT5 -->|"HTTP GET (HTML,CSS,JS)"| BR
    BR -->|"renders modules"| AP & BPg & CP & DP & IP & PP
    BR -->|"optional CDN fetch"| EX1 & EX2 & EX3

    %% Click Events for Developer Workstation
    click WS1 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/About_us/src/input.css"
    click WS2 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/About_us/tailwind.config.js"
    click WS3 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/src/input.css"
    click WS4 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/tailwind.config.js"
    click WS5 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/package.json"
    click WS6 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Contact_us/src/input.css"
    click WS7 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Contact_us/tailwind.config.js"
    click WS8 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Investors/src/investors.css"
    click WS9 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Investors/tailwind.config.js"

    %% Click Events for Build Pipeline
    click BP1 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/About_us/dist/output.css"
    click BP2 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/dist/output.css"
    click BP3 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Contact_us/dist/output.css"
    click BP4 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Investors/dist/output.css"

    %% Click Events for Static Hosting
    click HT1 "https://github.com/jaitensahu/project-dr.pathlab/tree/main/About_us/dist"
    click HT2 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/dist/book_a_test.html"
    click HT3 "https://github.com/jaitensahu/project-dr.pathlab/tree/main/Contact_us/dist"
    click HT4 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Investors/dist/investors.html"
    click HT5 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Patients/index.html"

    %% Click Events for Client Browser pages
    click AP "https://github.com/jaitensahu/project-dr.pathlab/blob/main/About_us/about.html"
    click BPg "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Book_a_test/dist/book_a_test.html"
    click CP "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Contact_us/contact.html"
    click DP "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Doctors/doctors.html"
    click IP "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Investors/dist/investors.html"
    click PP "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Patients/index.html"

    %% Click Events for External Libraries
    click EX1 "https://github.com/jaitensahu/project-dr.pathlab/blob/main/Doctors/flickity.pkgd.js"

    classDef developer fill:#cce5ff,stroke:#004085
    classDef pipeline fill:#fff3cd,stroke:#856404
    classDef hosting fill:#cce5ff,stroke:#004085
    classDef browser fill:#d4edda,stroke:#155724
    classDef external fill:#fff3cd,stroke:#856404

    class WS1,WS2,WS3,WS4,WS5,WS6,WS7,WS8,WS9 developer
    class BP1,BP2,BP3,BP4 pipeline
    class HT1,HT2,HT3,HT4,HT5 hosting
    class BR,AP,BPg,CP,DP,IP,PP browser
    class EX1,EX2,EX3 external
```
