# jamesbasitricaforte/capstone architecture

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

- Interactive diagram: https://gitdiagram.com/jamesbasitricaforte/capstone
- Repository: https://github.com/jamesbasitricaforte/capstone

## Overview

Local Produce Connect is an Android Flutter marketplace. Buyers and vendors use the app for accounts, produce listings, vendor locations, and marketplace interactions. The README identifies Firebase Authentication and Cloud Firestore as persistent services for accounts, listings, and vendor map locations; cart, orders, reservations, reviews, chat, favorites, and notifications are currently in-memory. The source excerpts do not include the Dart implementation, so module-level connections are left unverified rather than inferred from filenames.

Main entry points: [`lib/main.dart`](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/main.dart) (Flutter app), [`lib/data/firebase_marketplace_repository.dart`](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/firebase_marketplace_repository.dart) (Firebase repository), [`lib/data/location_services.dart`](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/location_services.dart) (Location services), [`lib/data/marketplace_service.dart`](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/marketplace_service.dart) (Marketplace workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and accounts"]
  node_app_entry["Flutter app<br/>[main.dart]"]
  node_auth{{"Firebase Authentication"}}
end

subgraph group_catalog["Listings and vendors"]
  node_marketplace_repo["Marketplace repository"]
  node_firebase_marketplace_repo["Firebase repository"]
  node_listing_service["Listing service"]
  node_listing_model["Produce listing"]
  node_vendor_profile["Vendor profile"]
  node_vendor_store["Vendor store page"]
end

subgraph group_location["Location and maps"]
  node_location_service["Location services"]
  node_geocoder["Reverse geocoder"]
  node_vendor_location["Vendor location"]
  node_vendor_locations_ui["Vendor locations page"]
  node_vendor_map["Vendor map"]
end

subgraph group_marketplace["Marketplace interactions"]
  node_messaging["Marketplace messaging"]
  node_messages_ui["Messages page"]
  node_purchase["Purchases and orders"]
  node_trust["Trust and reviews"]
  node_marketplace_service["Marketplace workflows"]
end

node_buyer_vendor(("Buyer or vendor"))
node_cloud_firestore[("Cloud Firestore")]

node_buyer_vendor -->|"uses"| node_app_entry
node_app_entry -->|"uses"| node_auth
node_app_entry -->|"uses"| node_cloud_firestore
node_app_entry -.->|"delegates"| node_listing_service
node_listing_service -.->|"delegates"| node_firebase_marketplace_repo
node_firebase_marketplace_repo -.->|"reads and writes"| node_cloud_firestore
node_firebase_marketplace_repo -.->|"uses"| node_listing_model
node_app_entry -.->|"delegates"| node_marketplace_repo
node_app_entry -.->|"displays"| node_vendor_store
node_vendor_store -.->|"uses"| node_vendor_profile
node_app_entry -.->|"uses"| node_location_service
node_location_service -.->|"delegates"| node_geocoder
node_location_service -.->|"uses"| node_vendor_location
node_app_entry -.->|"displays"| node_vendor_locations_ui
node_vendor_locations_ui -.->|"displays"| node_vendor_map
node_app_entry -.->|"displays"| node_messages_ui
node_messages_ui -.->|"uses"| node_messaging
node_app_entry -.->|"delegates"| node_marketplace_service
node_marketplace_service -.->|"uses"| node_purchase
node_marketplace_service -.->|"uses"| node_trust

click node_app_entry "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/main.dart"
click node_marketplace_repo "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/marketplace_repository.dart"
click node_firebase_marketplace_repo "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/firebase_marketplace_repository.dart"
click node_listing_service "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/firebase_listing_service.dart"
click node_listing_model "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/produce_listing.dart"
click node_vendor_profile "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/vendor_store_profile.dart"
click node_vendor_store "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_store_page.dart"
click node_location_service "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/location_services.dart"
click node_geocoder "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/nominatim_reverse_geocoder.dart"
click node_vendor_location "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/vendor_location.dart"
click node_vendor_locations_ui "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_locations_page.dart"
click node_vendor_map "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_map_view.dart"
click node_messaging "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_messaging.dart"
click node_messages_ui "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/marketplace_messages_page.dart"
click node_purchase "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_purchase.dart"
click node_trust "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_trust.dart"
click node_marketplace_service "https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/marketplace_service.dart"

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_app_entry,node_auth toneBlue
class node_marketplace_repo,node_firebase_marketplace_repo,node_listing_service,node_listing_model,node_vendor_profile,node_vendor_store,node_cloud_firestore toneAmber
class node_location_service,node_geocoder,node_vendor_location,node_vendor_locations_ui,node_vendor_map toneMint
class node_messaging,node_messages_ui,node_purchase,node_trust,node_marketplace_service toneRose
class node_buyer_vendor toneIndigo
```

## Components

### App and accounts

- [Flutter app](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/main.dart): `lib/main.dart`
- **Firebase Authentication**

### Listings and vendors

- [Marketplace repository](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/marketplace_repository.dart): `lib/data/marketplace_repository.dart`
- [Firebase repository](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/firebase_marketplace_repository.dart): `lib/data/firebase_marketplace_repository.dart`
- [Listing service](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/firebase_listing_service.dart): `lib/data/firebase_listing_service.dart`
- [Produce listing](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/produce_listing.dart): `lib/models/produce_listing.dart`
- [Vendor profile](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/vendor_store_profile.dart): `lib/models/vendor_store_profile.dart`
- [Vendor store page](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_store_page.dart): `lib/widgets/vendor_store_page.dart`

### Location and maps

- [Location services](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/location_services.dart): `lib/data/location_services.dart`
- [Reverse geocoder](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/nominatim_reverse_geocoder.dart): `lib/data/nominatim_reverse_geocoder.dart`
- [Vendor location](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/vendor_location.dart): `lib/models/vendor_location.dart`
- [Vendor locations page](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_locations_page.dart): `lib/widgets/vendor_locations_page.dart`
- [Vendor map](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/vendor_map_view.dart): `lib/widgets/vendor_map_view.dart`

### Marketplace interactions

- [Marketplace messaging](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_messaging.dart): `lib/models/marketplace_messaging.dart`
- [Messages page](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/widgets/marketplace_messages_page.dart): `lib/widgets/marketplace_messages_page.dart`
- [Purchases and orders](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_purchase.dart): `lib/models/marketplace_purchase.dart`
- [Trust and reviews](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/models/marketplace_trust.dart): `lib/models/marketplace_trust.dart`
- [Marketplace workflows](https://github.com/jamesbasitricaforte/capstone/blob/main/lib/data/marketplace_service.dart): `lib/data/marketplace_service.dart`

### Other components

- **Buyer or vendor**
- **Cloud Firestore**

## Connections

- Buyer or vendor → Flutter app: uses (evidence: `README.md`)
- Flutter app → Firebase Authentication: uses (evidence: `README.md`)
- Flutter app → Cloud Firestore: uses (evidence: `README.md`)
- Flutter app → Listing service: delegates
- Listing service → Firebase repository: delegates
- Firebase repository → Cloud Firestore: reads and writes
- Firebase repository → Produce listing: uses
- Flutter app → Marketplace repository: delegates
- Flutter app → Vendor store page: displays
- Vendor store page → Vendor profile: uses
- Flutter app → Location services: uses
- Location services → Reverse geocoder: delegates
- Location services → Vendor location: uses
- Flutter app → Vendor locations page: displays
- Vendor locations page → Vendor map: displays
- Flutter app → Messages page: displays
- Messages page → Marketplace messaging: uses
- Flutter app → Marketplace workflows: delegates
- Marketplace workflows → Purchases and orders: uses
- Marketplace workflows → Trust and reviews: uses
