How kennethlance2005/harvesthub_mysql works
HarvestHub is a role-based gardening community application: gardeners manage plots, crop records, resources, and exchanges; coordinators oversee plots, inventory, and records; administrators manage accounts. The visible runtime centers on PHP pages and a role-aware JSON API backed by MySQL. API excerpts show plot, crop-log, exchange, and resource lifecycle operations, but client-side API wiring and many route details were not sampled, so those connections are not inferred.
Main entry points: auth.php Session Authorization · api.php Role-Based JSON API · login.php Login and Registration · db.php MySQL Connection
Components 22
Access and Accounts
- Login and Registration
public/login.php - Session Authorization
public/auth.php - Account Recovery
public/api.php
Gardener Workspace
- Gardener Dashboard
public/customer_dashboard.php - Crop Journal
public/customer_crops.php - Plot Applications
public/customer_plots.php - Resource Inventory
public/customer_inventory.php - Community Exchange
public/customer_exchange.php
Coordinator Operations
- Coordinator Dashboard
public/staff_dashboard.php - Plot Operations
public/staff_plots.php - Inventory Operations
public/staff_inventory.php - Operational Records
public/staff_records.php
Administration
- Administrator Dashboard
public/admin_dashboard.php - Account Management
public/admin_manage_admins.php - Archived Accounts
public/admin_archived_accounts.php
Persistence
- Role-Based JSON API
public/api.php - MySQL Connection
db.php - Connection Settings
db_config.php - MySQL Database
schema.sql
Other components
- Gardener
- Coordinator
- Administrator
Connections 29
- Gardener → Login and Registration: signs in
- Coordinator → Login and Registration: signs in
- Administrator → Login and Registration: signs in
- Login and Registration → Session Authorization: uses sessions
public/login.php - Gardener Dashboard → Session Authorization: checks role
public/auth.php - Plot Applications → Session Authorization: checks role
public/auth.php - Crop Journal → Session Authorization: checks role
public/auth.php - Community Exchange → Session Authorization: checks role
public/auth.php - Coordinator Dashboard → Session Authorization: checks role
public/auth.php - Administrator Dashboard → Session Authorization: checks role
public/auth.php - Account Management → Session Authorization: checks role
public/auth.php - Gardener → Gardener Dashboard: uses workspace
- Gardener → Crop Journal: tracks crops
public/customer_crops.php - Gardener → Plot Applications: requests plots
- Gardener → Resource Inventory: views resources
- Gardener → Community Exchange: trades goods
public/customer_exchange.php - Coordinator → Coordinator Dashboard: uses workspace
- Coordinator → Plot Operations: manages plots
- Coordinator → Inventory Operations: manages inventory
- Coordinator → Operational Records: reviews records
- Administrator → Administrator Dashboard: uses workspace
- Administrator → Account Management: manages accounts
- Administrator → Archived Accounts: reviews archived
- Role-Based JSON API → Session Authorization: validates roles
public/api.php - Role-Based JSON API → MySQL Connection: opens connection
public/api.php - MySQL Connection → Connection Settings: loads settings
db.php - MySQL Connection → MySQL Database: connects
db.php - Role-Based JSON API → MySQL Database: reads and writes
public/api.php - Role-Based JSON API → Account Recovery: handles reset
public/api.php