# tirumalarao1214/golismart architecture

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

- Interactive diagram: https://gitdiagram.com/tirumalarao1214/golismart
- Repository: https://github.com/tirumalarao1214/golismart

## Overview

GOLIS Mart is an ASP.NET Core grocery-commerce application: shoppers and staff use an MVC storefront, which calls a separate API; the API owns SQL Server access. The main shopper journey is catalog discovery, cart, checkout/order placement, and order tracking, with account, delivery, and admin operations alongside it. The README documents catalog capabilities and the API-only database boundary. Some feature links are dashed because their specific controller-to-service implementation was not excerpted.

Main entry points: [`GOLISMart.Web/Services/Implementations/CatalogApiClient.cs`](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Services/Implementations/CatalogApiClient.cs) (Typed API clients), [`GOLISMart.API/Data/SqlConnectionFactory.cs`](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Data/SqlConnectionFactory.cs) (SQL connection factory), [`GOLISMart.API/Services/Implementations/OrderService.cs`](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/OrderService.cs) (Order service), [`GOLISMart.Web/Program.cs`](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Program.cs) (MVC routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["MVC Storefront"]
  node_mvc["MVC routes<br/>[Program.cs]"]
  node_webcatalog["Catalog pages"]
  node_webcart["Cart pages<br/>[CartController.cs]"]
  node_webcheckout["Checkout pages"]
  node_webaccount["Account pages"]
  node_weborders["Order pages<br/>[OrderController.cs]"]
  node_webadmin["Admin pages"]
  node_webdelivery["Delivery pages"]
  node_clients["Typed API clients"]
end

subgraph group_api["Commerce API"]
  node_apiorders["Order endpoints"]
  node_apiproducts["Catalog endpoints"]
  node_apiauth["Auth service<br/>[AuthService.cs]"]
  node_orderlogic["Order service<br/>[OrderService.cs]"]
  node_adminlogic["Admin service<br/>[AdminService.cs]"]
  node_deliverylogic["Delivery management"]
  node_otherapi["Commerce endpoints"]
end

subgraph group_data["Persistence"]
  node_sqlfactory["SQL connection factory"]
  node_orderrepo["Order repository<br/>[OrderRepository.cs]"]
  node_adminrepo["Admin repository<br/>[AdminRepository.cs]"]
  node_deliveryrepo["Delivery repository"]
  node_repositories["Commerce repositories"]
end

subgraph group_ops["Operations"]
  node_geocoding["Nominatim"]
end

node_shopper(("Shopper"))
node_staff(("Store staff"))
node_database[("SQL Server")]

node_shopper -->|"browses and submits"| node_mvc
node_staff -.->|"manages store"| node_mvc
node_mvc -.->|"routes to"| node_webcatalog
node_mvc -->|"registers clients"| node_clients
node_webcatalog -.->|"requests catalog"| node_clients
node_webcart -.->|"requests cart"| node_clients
node_webcheckout -->|"requests checkout"| node_clients
node_webaccount -->|"requests account"| node_clients
node_weborders -.->|"requests orders"| node_clients
node_webadmin -.->|"requests administration"| node_clients
node_webdelivery -.->|"requests delivery"| node_clients
node_clients -.->|"calls API"| node_apiproducts
node_clients -.->|"calls API"| node_apiorders
node_clients -->|"calls API"| node_apiauth
node_apiorders -->|"places orders"| node_orderlogic
node_apiorders -->|"gets tracking"| node_deliverylogic
node_apiproducts -.->|"queries catalog"| node_repositories
node_otherapi -.->|"uses account service"| node_apiauth
node_orderlogic -->|"persists orders"| node_orderrepo
node_orderlogic -->|"reads cart and stock"| node_repositories
node_adminlogic -->|"runs admin queries"| node_adminrepo
node_deliverylogic -.->|"manages delivery data"| node_deliveryrepo
node_orderlogic -->|"checks serviceability"| node_deliverylogic
node_sqlfactory -.->|"opens connections"| node_database
node_orderrepo -.->|"creates connection"| node_sqlfactory
node_adminrepo -->|"creates connection"| node_sqlfactory
node_deliveryrepo -.->|"creates connection"| node_sqlfactory
node_repositories -.->|"creates connection"| node_sqlfactory
node_deliverylogic -.->|"geocodes locations"| node_geocoding

click node_mvc "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Program.cs"
click node_webcatalog "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CatalogController.cs"
click node_webcart "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CartController.cs"
click node_webcheckout "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CheckoutController.cs"
click node_webaccount "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/AccountController.cs"
click node_weborders "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/OrderController.cs"
click node_webadmin "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/Admin/AdminDashboardController.cs"
click node_webdelivery "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/DeliveryDashboardController.cs"
click node_clients "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Services/Implementations/CatalogApiClient.cs"
click node_apiorders "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/OrdersController.cs"
click node_apiproducts "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/ProductsController.cs"
click node_apiauth "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/AuthService.cs"
click node_orderlogic "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/OrderService.cs"
click node_adminlogic "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/AdminService.cs"
click node_deliverylogic "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/DeliveryManagementService.cs"
click node_otherapi "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/CustomersController.cs"
click node_sqlfactory "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Data/SqlConnectionFactory.cs"
click node_orderrepo "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/OrderRepository.cs"
click node_adminrepo "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/AdminRepository.cs"
click node_deliveryrepo "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/DeliveryManagementRepository.cs"
click node_repositories "https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/ProductRepository.cs"

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_mvc,node_webcatalog,node_webcart,node_webcheckout,node_webaccount,node_weborders,node_webadmin,node_webdelivery,node_clients toneBlue
class node_apiorders,node_apiproducts,node_apiauth,node_orderlogic,node_adminlogic,node_deliverylogic,node_otherapi,node_database toneAmber
class node_sqlfactory,node_orderrepo,node_adminrepo,node_deliveryrepo,node_repositories toneMint
class node_geocoding toneRose
class node_shopper,node_staff toneIndigo
```

## Components

### MVC Storefront

- [MVC routes](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Program.cs): `GOLISMart.Web/Program.cs`
- [Catalog pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CatalogController.cs): `GOLISMart.Web/Controllers/CatalogController.cs`
- [Cart pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CartController.cs): `GOLISMart.Web/Controllers/CartController.cs`
- [Checkout pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/CheckoutController.cs): `GOLISMart.Web/Controllers/CheckoutController.cs`
- [Account pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/AccountController.cs): `GOLISMart.Web/Controllers/AccountController.cs`
- [Order pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/OrderController.cs): `GOLISMart.Web/Controllers/OrderController.cs`
- [Admin pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/Admin/AdminDashboardController.cs): `GOLISMart.Web/Controllers/Admin/AdminDashboardController.cs`
- [Delivery pages](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Controllers/DeliveryDashboardController.cs): `GOLISMart.Web/Controllers/DeliveryDashboardController.cs`
- [Typed API clients](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.Web/Services/Implementations/CatalogApiClient.cs): `GOLISMart.Web/Services/Implementations/CatalogApiClient.cs`

### Commerce API

- [Order endpoints](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/OrdersController.cs): `GOLISMart.API/Controllers/OrdersController.cs`
- [Catalog endpoints](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/ProductsController.cs): `GOLISMart.API/Controllers/ProductsController.cs`
- [Auth service](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/AuthService.cs): `GOLISMart.API/Services/Implementations/AuthService.cs`
- [Order service](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/OrderService.cs): `GOLISMart.API/Services/Implementations/OrderService.cs`
- [Admin service](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/AdminService.cs): `GOLISMart.API/Services/Implementations/AdminService.cs`
- [Delivery management](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Services/Implementations/DeliveryManagementService.cs): `GOLISMart.API/Services/Implementations/DeliveryManagementService.cs`
- [Commerce endpoints](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Controllers/CustomersController.cs): `GOLISMart.API/Controllers/CustomersController.cs`

### Persistence

- [SQL connection factory](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Data/SqlConnectionFactory.cs): `GOLISMart.API/Data/SqlConnectionFactory.cs`
- [Order repository](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/OrderRepository.cs): `GOLISMart.API/Repositories/Implementations/OrderRepository.cs`
- [Admin repository](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/AdminRepository.cs): `GOLISMart.API/Repositories/Implementations/AdminRepository.cs`
- [Delivery repository](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/DeliveryManagementRepository.cs): `GOLISMart.API/Repositories/Implementations/DeliveryManagementRepository.cs`
- [Commerce repositories](https://github.com/tirumalarao1214/golismart/blob/main/GOLISMart.API/Repositories/Implementations/ProductRepository.cs): `GOLISMart.API/Repositories/Implementations/ProductRepository.cs`

### Operations

- **Nominatim**

### Other components

- **Shopper**
- **Store staff**
- **SQL Server**

## Connections

- Shopper → MVC routes: browses and submits
- Store staff → MVC routes: manages store
- MVC routes → Catalog pages: routes to (evidence: `GOLISMart.Web/Program.cs`)
- MVC routes → Typed API clients: registers clients (evidence: `GOLISMart.Web/Program.cs`)
- Catalog pages → Typed API clients: requests catalog
- Cart pages → Typed API clients: requests cart (evidence: `GOLISMart.Web/Controllers/CartController.cs`)
- Checkout pages → Typed API clients: requests checkout (evidence: `GOLISMart.Web/Controllers/CheckoutController.cs`)
- Account pages → Typed API clients: requests account (evidence: `GOLISMart.Web/Controllers/AccountController.cs`)
- Order pages → Typed API clients: requests orders
- Admin pages → Typed API clients: requests administration
- Delivery pages → Typed API clients: requests delivery
- Typed API clients → Catalog endpoints: calls API
- Typed API clients → Order endpoints: calls API
- Typed API clients → Auth service: calls API
- Order endpoints → Order service: places orders (evidence: `GOLISMart.API/Controllers/OrdersController.cs`)
- Order endpoints → Delivery management: gets tracking (evidence: `GOLISMart.API/Controllers/OrdersController.cs`)
- Catalog endpoints → Commerce repositories: queries catalog
- Commerce endpoints → Auth service: uses account service (evidence: `GOLISMart.API/Services/Implementations/AuthService.cs`)
- Order service → Order repository: persists orders (evidence: `GOLISMart.API/Services/Implementations/OrderService.cs`)
- Order service → Commerce repositories: reads cart and stock (evidence: `GOLISMart.API/Services/Implementations/OrderService.cs`)
- Admin service → Admin repository: runs admin queries (evidence: `GOLISMart.API/Services/Implementations/AdminService.cs`)
- Delivery management → Delivery repository: manages delivery data (evidence: `GOLISMart.API/Repositories/Implementations/DeliveryManagementRepository.cs`)
- Order service → Delivery management: checks serviceability (evidence: `GOLISMart.API/Services/Implementations/OrderService.cs`)
- SQL connection factory → SQL Server: opens connections
- Order repository → SQL connection factory: creates connection (evidence: `GOLISMart.API/Program.cs`)
- Admin repository → SQL connection factory: creates connection (evidence: `GOLISMart.API/Repositories/Implementations/AdminRepository.cs`)
- Delivery repository → SQL connection factory: creates connection (evidence: `GOLISMart.API/Repositories/Implementations/DeliveryManagementRepository.cs`)
- Commerce repositories → SQL connection factory: creates connection (evidence: `GOLISMart.API/Program.cs`)
- Delivery management → Nominatim: geocodes locations
