# kashinath-1908/vangodd architecture

> Architecture diagram of the GitHub repository kashinath-1908/vangodd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kashinath-1908/vangodd
- Repository: https://github.com/kashinath-1908/vangodd

## Overview

Vangodd is a regional community discovery and listing application. Visitors start at the homepage, browse business, Agri Market, heritage, or event listings, and can search across the platform; listing pages lead to item details. Registered users can manage submissions through the dashboard, while administrators review content and users. The pages use a shared MySQL connection and session helpers. The README documents the main capabilities, but several routes were not sampled, so their internal calls and some navigation links are not asserted.

Main entry points: [`config/db.php`](https://github.com/kashinath-1908/vangodd/blob/main/config/db.php) (Database and sessions), [`index.php`](https://github.com/kashinath-1908/vangodd/blob/main/index.php) (Homepage), [`modules/admin/dashboard.php`](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/dashboard.php) (Admin oversight), [`dashboard.php`](https://github.com/kashinath-1908/vangodd/blob/main/dashboard.php) (User dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Community discovery"]
  node_home["Homepage<br/>[index.php]"]
  node_search["Platform search<br/>[search.php]"]
  node_business["Business directory<br/>[business.php]"]
  node_business_detail["Business details<br/>[view_business.php]"]
  node_market["Agri Market<br/>[product.php]"]
  node_product_detail["Product details<br/>[view_product.php]"]
  node_heritage["Heritage discovery<br/>[heritage.php]"]
  node_heritage_map["Heritage map<br/>[map.php]"]
  node_events["Events listing<br/>[events.php]"]
  node_event_detail["Event details<br/>[view_event.php]"]
end

subgraph group_accounts["Accounts and listings"]
  node_auth["Account access<br/>[login.php]"]
  node_dashboard["User dashboard<br/>[dashboard.php]"]
  node_listing_manage["Listing management<br/>[add_business.php]"]
  node_product_manage["Product management<br/>[add_product.php]"]
  node_event_manage["Event management<br/>[add_event.php]"]
  node_heritage_manage["Heritage submissions<br/>[add_heritage.php]"]
end

subgraph group_operations["Administration"]
  node_admin["Admin oversight<br/>[dashboard.php]"]
  node_business_review["Business verification"]
  node_heritage_review["Heritage verification"]
  node_event_admin["Event administration<br/>[manage_events.php]"]
  node_user_admin["User administration<br/>[manage_users.php]"]
end

subgraph group_runtime["Shared runtime"]
  node_db_config["Database and sessions<br/>[db.php]"]
  node_mysql[("MySQL database")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"searches via"| node_search
node_home -->|"links to"| node_business
node_home -->|"links to"| node_heritage
node_home -->|"links to"| node_events
node_visitor -.->|"browses"| node_market
node_visitor -.->|"explores map"| node_heritage_map
node_visitor -.->|"signs in"| node_auth
node_visitor -.->|"views listing"| node_business_detail
node_visitor -.->|"views listing"| node_product_detail
node_visitor -.->|"views event"| node_event_detail
node_dashboard -.->|"manages listings"| node_listing_manage
node_dashboard -.->|"manages products"| node_product_manage
node_visitor -.->|"submits events"| node_event_manage
node_visitor -.->|"submits heritage"| node_heritage_manage
node_admin -.->|"reviews businesses"| node_business_review
node_admin -.->|"reviews heritage"| node_heritage_review
node_admin -.->|"manages events"| node_event_admin
node_admin -.->|"manages users"| node_user_admin
node_search -->|"queries through"| node_db_config
node_business -->|"queries through"| node_db_config
node_market -->|"queries through"| node_db_config
node_heritage -->|"queries through"| node_db_config
node_events -->|"queries through"| node_db_config
node_db_config -->|"connects to"| node_mysql

click node_home "https://github.com/kashinath-1908/vangodd/blob/main/index.php"
click node_search "https://github.com/kashinath-1908/vangodd/blob/main/search.php"
click node_business "https://github.com/kashinath-1908/vangodd/blob/main/modules/business/business.php"
click node_business_detail "https://github.com/kashinath-1908/vangodd/blob/main/modules/business/view_business.php"
click node_market "https://github.com/kashinath-1908/vangodd/blob/main/modules/product/product.php"
click node_product_detail "https://github.com/kashinath-1908/vangodd/blob/main/modules/product/view_product.php"
click node_heritage "https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/heritage.php"
click node_heritage_map "https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/map.php"
click node_events "https://github.com/kashinath-1908/vangodd/blob/main/modules/events/events.php"
click node_event_detail "https://github.com/kashinath-1908/vangodd/blob/main/modules/events/view_event.php"
click node_auth "https://github.com/kashinath-1908/vangodd/blob/main/modules/auth/login.php"
click node_dashboard "https://github.com/kashinath-1908/vangodd/blob/main/dashboard.php"
click node_listing_manage "https://github.com/kashinath-1908/vangodd/blob/main/modules/dashboard/add_business.php"
click node_product_manage "https://github.com/kashinath-1908/vangodd/blob/main/modules/dashboard/add_product.php"
click node_event_manage "https://github.com/kashinath-1908/vangodd/blob/main/modules/events/add_event.php"
click node_heritage_manage "https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/add_heritage.php"
click node_admin "https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/dashboard.php"
click node_business_review "https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/verify_business.php"
click node_heritage_review "https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/verify_heritage.php"
click node_event_admin "https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/manage_events.php"
click node_user_admin "https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/manage_users.php"
click node_db_config "https://github.com/kashinath-1908/vangodd/blob/main/config/db.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_search,node_business,node_business_detail,node_market,node_product_detail,node_heritage,node_heritage_map,node_events,node_event_detail toneBlue
class node_auth,node_dashboard,node_listing_manage,node_product_manage,node_event_manage,node_heritage_manage toneAmber
class node_admin,node_business_review,node_heritage_review,node_event_admin,node_user_admin toneMint
class node_db_config,node_mysql toneRose
class node_visitor toneIndigo
```

## Components

### Community discovery

- [Homepage](https://github.com/kashinath-1908/vangodd/blob/main/index.php): `index.php`
- [Platform search](https://github.com/kashinath-1908/vangodd/blob/main/search.php): `search.php`
- [Business directory](https://github.com/kashinath-1908/vangodd/blob/main/modules/business/business.php): `modules/business/business.php`
- [Business details](https://github.com/kashinath-1908/vangodd/blob/main/modules/business/view_business.php): `modules/business/view_business.php`
- [Agri Market](https://github.com/kashinath-1908/vangodd/blob/main/modules/product/product.php): `modules/product/product.php`
- [Product details](https://github.com/kashinath-1908/vangodd/blob/main/modules/product/view_product.php): `modules/product/view_product.php`
- [Heritage discovery](https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/heritage.php): `modules/heritage/heritage.php`
- [Heritage map](https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/map.php): `modules/heritage/map.php`
- [Events listing](https://github.com/kashinath-1908/vangodd/blob/main/modules/events/events.php): `modules/events/events.php`
- [Event details](https://github.com/kashinath-1908/vangodd/blob/main/modules/events/view_event.php): `modules/events/view_event.php`

### Accounts and listings

- [Account access](https://github.com/kashinath-1908/vangodd/blob/main/modules/auth/login.php): `modules/auth/login.php`
- [User dashboard](https://github.com/kashinath-1908/vangodd/blob/main/dashboard.php): `dashboard.php`
- [Listing management](https://github.com/kashinath-1908/vangodd/blob/main/modules/dashboard/add_business.php): `modules/dashboard/add_business.php`
- [Product management](https://github.com/kashinath-1908/vangodd/blob/main/modules/dashboard/add_product.php): `modules/dashboard/add_product.php`
- [Event management](https://github.com/kashinath-1908/vangodd/blob/main/modules/events/add_event.php): `modules/events/add_event.php`
- [Heritage submissions](https://github.com/kashinath-1908/vangodd/blob/main/modules/heritage/add_heritage.php): `modules/heritage/add_heritage.php`

### Administration

- [Admin oversight](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/dashboard.php): `modules/admin/dashboard.php`
- [Business verification](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/verify_business.php): `modules/admin/verify_business.php`
- [Heritage verification](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/verify_heritage.php): `modules/admin/verify_heritage.php`
- [Event administration](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/manage_events.php): `modules/admin/manage_events.php`
- [User administration](https://github.com/kashinath-1908/vangodd/blob/main/modules/admin/manage_users.php): `modules/admin/manage_users.php`

### Shared runtime

- [Database and sessions](https://github.com/kashinath-1908/vangodd/blob/main/config/db.php): `config/db.php`
- **MySQL database**

### Other components

- **Visitor**

## Connections

- Visitor → Homepage: opens (evidence: `index.php`)
- Homepage → Platform search: searches via (evidence: `index.php`)
- Homepage → Business directory: links to (evidence: `index.php`)
- Homepage → Heritage discovery: links to (evidence: `index.php`)
- Homepage → Events listing: links to (evidence: `index.php`)
- Visitor → Agri Market: browses
- Visitor → Heritage map: explores map
- Visitor → Account access: signs in
- Visitor → Business details: views listing
- Visitor → Product details: views listing
- Visitor → Event details: views event
- User dashboard → Listing management: manages listings
- User dashboard → Product management: manages products
- Visitor → Event management: submits events
- Visitor → Heritage submissions: submits heritage
- Admin oversight → Business verification: reviews businesses
- Admin oversight → Heritage verification: reviews heritage
- Admin oversight → Event administration: manages events
- Admin oversight → User administration: manages users
- Platform search → Database and sessions: queries through (evidence: `search.php`)
- Business directory → Database and sessions: queries through (evidence: `modules/business/business.php`)
- Agri Market → Database and sessions: queries through (evidence: `modules/product/product.php`)
- Heritage discovery → Database and sessions: queries through (evidence: `modules/heritage/heritage.php`)
- Events listing → Database and sessions: queries through (evidence: `modules/events/events.php`)
- Database and sessions → MySQL database: connects to (evidence: `config/db.php`)
