# oviyashree-cj/e-commerce_grocery architecture

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

- Interactive diagram: https://gitdiagram.com/oviyashree-cj/e-commerce_grocery
- Repository: https://github.com/oviyashree-cj/e-commerce_grocery

## Overview

##### Project type and purpose
- This is a static, front-end only website (“Farmazy – Grocery Store”) built with plain HTML, CSS, JavaScript, and Bootstrap.
- Its purpose is to serve a responsive UI for browsing and “purchasing” grocery items (educational demo).

##### File structure
- Top-level HTML pages: index.html, about.html, cart.html, contact.html, faq.html, login.html, products.html
- Assets: style.css, script.js, images/ (contains curd.avif)
- No backend code or server-side directories—static site only.
- No build tools, config files, or microservices—simple file/asset organization.

##### README
- Confirms static, Bootstrap-based responsive design.
- External dependencies: Bootstrap CSS/JS (via CDN), Google Fonts.
- Usage: clone and open index.html in browser.

a. Main components
- User’s Web Browser (client)
- Static Web Server (could be GitHub Pages, Netlify, S3) serving HTML/CSS/JS and images
- External CDNs (Bootstrap, Google Fonts)
b. Relationships & data flow
1. Browser GET → index.html (and subsequent HTML pages) from Static Server
2. Browser GET → style.css and script.js
3. Browser GET → images/curd.avif
4. Browser GET → Bootstrap CSS/JS and Google Fonts from CDN
5. Browser renders HTML + CSS, executes script.js
c. Architectural patterns
- Static-site architecture (no backend)
- Client-driven rendering of UI
- CDN-backed style/script delivery
d. Key technologies
- HTML5 pages
- CSS + Bootstrap 5
- JavaScript (script.js)
- Google Fonts (Poppins)
- Hosting: any static web server

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client"
        Browser["User Browser"]:::client
    end

    subgraph "Static Web Server"
        subgraph "HTML Pages"
            index["index.html"]:::asset
            about["about.html"]:::asset
            cart["cart.html"]:::asset
            contact["contact.html"]:::asset
            faq["faq.html"]:::asset
            login["login.html"]:::asset
            products["products.html"]:::asset
        end
        css["style.css"]:::asset
        js["script.js"]:::asset
        images["images/curd.avif"]:::asset
        doc["README.md"]:::doc
        config[".vscode/"]:::doc
    end

    subgraph "External CDNs"
        BootstrapCDN["Bootstrap CDN"]:::cdn
        FontsCDN["Google Fonts CDN"]:::cdn
    end

    Browser -->|"HTTP GET /index.html → 200 OK"| index
    Browser -->|"HTTP GET /about.html → 200 OK"| about
    Browser -->|"HTTP GET /cart.html → 200 OK"| cart
    Browser -->|"HTTP GET /contact.html → 200 OK"| contact
    Browser -->|"HTTP GET /faq.html → 200 OK"| faq
    Browser -->|"HTTP GET /login.html → 200 OK"| login
    Browser -->|"HTTP GET /products.html → 200 OK"| products
    Browser -->|"HTTP GET /style.css → 200 OK"| css
    Browser -->|"HTTP GET /script.js → 200 OK"| js
    Browser -->|"HTTP GET /images/curd.avif → 200 OK"| images
    Browser -->|"HTTP GET bootstrap.min.css/js"| BootstrapCDN
    Browser -->|"HTTP GET Poppins font"| FontsCDN

    click index "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/index.html"
    click about "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/about.html"
    click cart "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/cart.html"
    click contact "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/contact.html"
    click faq "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/faq.html"
    click login "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/login.html"
    click products "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/products.html"
    click css "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/style.css"
    click js "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/script.js"
    click images "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/images/curd.avif"
    click doc "https://github.com/oviyashree-cj/e-commerce_grocery/blob/main/README.md"
    click config "https://github.com/oviyashree-cj/e-commerce_grocery/tree/main/.vscode/"

    classDef client fill:#aed6f1,stroke:#2980b9,color:#1b2631;
    classDef asset fill:#a9dfbf,stroke:#27ae60,color:#1b2631;
    classDef cdn fill:#f9e79f,stroke:#f1c40f,color:#1b2631;
    classDef doc fill:#d5dbdb,stroke:#7f8c8d,color:#1b2631;
```
