# abdullah-238/storesland architecture

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

- Interactive diagram: https://gitdiagram.com/abdullah-238/storesland
- Repository: https://github.com/abdullah-238/storesland

## Overview

StoresLand is a .NET MAUI storefront discovery and management product backed by a separate API client library. The main user flow starts at app initialization/login, then lets users browse stores by category and location, inspect store pages, save or rate stores, and manage listings, offers, coupons, or sales. The tree and excerpts show API-client responsibilities and selected frontend calls; README provides no product detail. Most screen wiring and API hosting internals were not sampled, so those links are omitted rather than inferred.

Main entry points: [`StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs) (Store browsing), [`StoresPlace-Front/App.xaml.cs`](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/App.xaml.cs) (Startup and login), [`StoresLand-API/SavedStoresServices/clsSavedStore.cs`](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/SavedStoresServices/clsSavedStore.cs) (Saved stores), [`StoresLand-API/StoresServices/clsStore.cs`](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/StoresServices/clsStore.cs) (Store service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Mobile client"]
  node_init["Startup and login<br/>[App.xaml.cs]"]
  node_local_geo[("Local geography cache<br/>[clsDistrictLite.cs]")]
end

subgraph group_browse["Discovery"]
  node_browse_stores["Store browsing<br/>[StoreViewModel.cs]"]
  node_categories["Categories"]
  node_store_page["Store details"]
  node_sell_browse["For-sale browsing"]
  node_sell_detail["Sale details"]
end

subgraph group_account["Accounts"]
  node_login["Person accounts<br/>[clsPerson.cs]"]
  node_saved["Saved stores<br/>[clsSavedStore.cs]"]
  node_ratings["Store ratings<br/>[clsRate.cs]"]
  node_profile["Profile and settings<br/>[pgProfile.xaml.cs]"]
end

subgraph group_management["Store management"]
  node_store_admin["Store listings"]
  node_offers["Offers<br/>[clsOffers.cs]"]
  node_coupons["Coupons<br/>[clsCoupon.cs]"]
  node_sale_admin["Sell a store"]
end

subgraph group_api["API client"]
  node_store_api["Store service<br/>[clsStore.cs]"]
  node_category_api["Category service<br/>[clsCategory.cs]"]
  node_type_api["Type service<br/>[clsType.cs]"]
  node_location_api["Location services<br/>[clsRegion.cs]"]
end

node_user(("App user"))
node_remote_api{{"StoresLand API"}}

node_user -->|"starts app"| node_init
node_init -->|"validates login"| node_login
node_init -->|"loads categories"| node_category_api
node_init -->|"loads types"| node_type_api
node_init -->|"loads geography"| node_local_geo
node_browse_stores -->|"fetches stores"| node_store_api
node_browse_stores -->|"filters location"| node_local_geo
node_browse_stores -->|"loads saved stores"| node_saved
node_browse_stores -->|"navigates"| node_store_page
node_browse_stores -->|"opens saved view"| node_saved
node_store_api -.->|"HTTP requests"| node_remote_api
node_category_api -.->|"HTTP requests"| node_remote_api
node_type_api -.->|"HTTP requests"| node_remote_api
node_login -.->|"HTTP requests"| node_remote_api
node_saved -.->|"HTTP requests"| node_remote_api
node_ratings -.->|"HTTP requests"| node_remote_api
node_offers -.->|"HTTP requests"| node_remote_api
node_coupons -.->|"HTTP requests"| node_remote_api
node_sale_admin -->|"HTTP requests"| node_remote_api
node_store_admin -.->|"manages listings"| node_store_api
node_sell_browse -.->|"opens details"| node_sell_detail
node_sell_detail -.->|"loads sale data"| node_remote_api

click node_init "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/App.xaml.cs"
click node_browse_stores "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs"
click node_categories "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Categories/CategoriesViewModel.cs"
click node_store_page "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Stores/StoresPage/StorePageViewModel.cs"
click node_sell_browse "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/StoresForSell/StoresForSellMain/StoresForSellViewModel.cs"
click node_sell_detail "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/StoresForSell/StoreForSellPage/StoreForSellViewModel.cs"
click node_login "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/PersonsServices/clsPerson.cs"
click node_saved "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/SavedStoresServices/clsSavedStore.cs"
click node_ratings "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/RatesServices/clsRate.cs"
click node_profile "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Settings/pgProfile.xaml.cs"
click node_store_admin "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Settings/MyStores/MyStore/MyStoreViewModel/clsAddUpdateStoreViewModel.cs"
click node_offers "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/OffersServices/clsOffers.cs"
click node_coupons "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/CouponsServices/clsCoupon.cs"
click node_sale_admin "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/StoresForSale/clsStoresForeSaleService.cs"
click node_store_api "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/StoresServices/clsStore.cs"
click node_category_api "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/CategoriesServices/clsCategory.cs"
click node_type_api "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/TypesServices/clsType.cs"
click node_location_api "https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/RegionsServices/clsRegion.cs"
click node_local_geo "https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Sqlite/clsDistrictLite.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_init,node_local_geo,node_user toneBlue
class node_browse_stores,node_categories,node_store_page,node_sell_browse,node_sell_detail toneAmber
class node_login,node_saved,node_ratings,node_profile,node_remote_api toneMint
class node_store_admin,node_offers,node_coupons,node_sale_admin toneRose
class node_store_api,node_category_api,node_type_api,node_location_api toneIndigo
```

## Components

### Mobile client

- [Startup and login](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/App.xaml.cs): `StoresPlace-Front/App.xaml.cs`
- [Local geography cache](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Sqlite/clsDistrictLite.cs): `StoresPlace-Front/Sqlite/clsDistrictLite.cs`

### Discovery

- [Store browsing](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs): `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`
- [Categories](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Categories/CategoriesViewModel.cs): `StoresPlace-Front/Categories/CategoriesViewModel.cs`
- [Store details](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Stores/StoresPage/StorePageViewModel.cs): `StoresPlace-Front/Stores/StoresPage/StorePageViewModel.cs`
- [For-sale browsing](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/StoresForSell/StoresForSellMain/StoresForSellViewModel.cs): `StoresPlace-Front/StoresForSell/StoresForSellMain/StoresForSellViewModel.cs`
- [Sale details](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/StoresForSell/StoreForSellPage/StoreForSellViewModel.cs): `StoresPlace-Front/StoresForSell/StoreForSellPage/StoreForSellViewModel.cs`

### Accounts

- [Person accounts](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/PersonsServices/clsPerson.cs): `StoresLand-API/PersonsServices/clsPerson.cs`
- [Saved stores](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/SavedStoresServices/clsSavedStore.cs): `StoresLand-API/SavedStoresServices/clsSavedStore.cs`
- [Store ratings](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/RatesServices/clsRate.cs): `StoresLand-API/RatesServices/clsRate.cs`
- [Profile and settings](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Settings/pgProfile.xaml.cs): `StoresPlace-Front/Settings/pgProfile.xaml.cs`

### Store management

- [Store listings](https://github.com/abdullah-238/storesland/blob/main/StoresPlace-Front/Settings/MyStores/MyStore/MyStoreViewModel/clsAddUpdateStoreViewModel.cs): `StoresPlace-Front/Settings/MyStores/MyStore/MyStoreViewModel/clsAddUpdateStoreViewModel.cs`
- [Offers](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/OffersServices/clsOffers.cs): `StoresLand-API/OffersServices/clsOffers.cs`
- [Coupons](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/CouponsServices/clsCoupon.cs): `StoresLand-API/CouponsServices/clsCoupon.cs`
- [Sell a store](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/StoresForSale/clsStoresForeSaleService.cs): `StoresLand-API/StoresForSale/clsStoresForeSaleService.cs`

### API client

- [Store service](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/StoresServices/clsStore.cs): `StoresLand-API/StoresServices/clsStore.cs`
- [Category service](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/CategoriesServices/clsCategory.cs): `StoresLand-API/CategoriesServices/clsCategory.cs`
- [Type service](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/TypesServices/clsType.cs): `StoresLand-API/TypesServices/clsType.cs`
- [Location services](https://github.com/abdullah-238/storesland/blob/main/StoresLand-API/RegionsServices/clsRegion.cs): `StoresLand-API/RegionsServices/clsRegion.cs`

### Other components

- **App user**
- **StoresLand API**

## Connections

- App user → Startup and login: starts app (evidence: `StoresPlace-Front/App.xaml.cs`)
- Startup and login → Person accounts: validates login (evidence: `StoresPlace-Front/App.xaml.cs`)
- Startup and login → Category service: loads categories (evidence: `StoresPlace-Front/App.xaml.cs`)
- Startup and login → Type service: loads types (evidence: `StoresPlace-Front/App.xaml.cs`)
- Startup and login → Local geography cache: loads geography (evidence: `StoresPlace-Front/App.xaml.cs`)
- Store browsing → Store service: fetches stores (evidence: `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`)
- Store browsing → Local geography cache: filters location (evidence: `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`)
- Store browsing → Saved stores: loads saved stores (evidence: `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`)
- Store browsing → Store details: navigates (evidence: `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`)
- Store browsing → Saved stores: opens saved view (evidence: `StoresPlace-Front/Stores/StoresMain/StoreViewModel.cs`)
- Store service → StoresLand API: HTTP requests
- Category service → StoresLand API: HTTP requests
- Type service → StoresLand API: HTTP requests
- Person accounts → StoresLand API: HTTP requests
- Saved stores → StoresLand API: HTTP requests
- Store ratings → StoresLand API: HTTP requests
- Offers → StoresLand API: HTTP requests
- Coupons → StoresLand API: HTTP requests
- Sell a store → StoresLand API: HTTP requests (evidence: `StoresLand-API/StoresForSale/clsStoresForeSaleService.cs`)
- Store listings → Store service: manages listings
- For-sale browsing → Sale details: opens details
- Sale details → StoresLand API: loads sale data
