How moh775-m/saydaliyat-hadhramout works
Aliyat Hadhramout is a React pharmacy-management system with public pharmacy discovery and per-pharmacy storefronts, pharmacy operations, and a manager console. The main customer workflow is landing-page discovery or a pharmacy-specific link, browsing medicines, submitting an order with optional prescription/payment uploads, then pharmacy-side order handling and sales recording. README documents reporting, inventory, direct sales, payment accounts, and subscription administration; excerpts confirm only some implementation details, so unsampled links are omitted. Supabase is the shared backend; its schema and order-completion behavior are documented in the README.
Main entry points: Dashboard.jsx Pharmacy dashboard · App.jsx Route dispatcher · Shop.jsx Customer storefront · supabase.js Supabase client
Components 16
Public entry
- Route dispatcher
src/App.jsx - Pharmacy discovery
src/pages/Landing.jsx - Pharmacy login
src/pages/login.jsx
Store and orders
- Customer storefront
src/pages/Shop.jsx
Pharmacy operations
- Pharmacy dashboard
src/pages/Dashboard.jsx - Medicine inventory
src/pages/Dashboard.jsx - Sales and reports
src/pages/Dashboard.jsx - Payment accounts
src/pages/Dashboard.jsx
Platform management
- Pharmacy administration
src/pages/Admin.jsx
Backend services
- Supabase client
src/supabase.js - Pharmacy data
- Prescription storage
- WhatsApp contact
Other components
- Customer
- Pharmacy staff
- Administrator
Connections 27
- Customer → Route dispatcher: opens app
src/App.jsx - Route dispatcher → Pharmacy discovery: routes to
src/App.jsx - Route dispatcher → Pharmacy login: routes to
src/App.jsx - Route dispatcher → Customer storefront: routes to
src/App.jsx - Route dispatcher → Pharmacy dashboard: protects route
src/App.jsx - Route dispatcher → Pharmacy administration: routes to
src/App.jsx - Pharmacy discovery → Supabase client: queries pharmacies
src/pages/Landing.jsx - Pharmacy discovery → Pharmacy login: navigates to
src/pages/Landing.jsx - Pharmacy discovery → Pharmacy administration: navigates to
src/pages/Landing.jsx - Pharmacy login → Supabase client: checks credentials
src/pages/login.jsx - Pharmacy login → Pharmacy dashboard: navigates after login
- Pharmacy staff → Pharmacy login: signs in
README.md - Pharmacy staff → Pharmacy dashboard: uses operations
README.md - Customer → Customer storefront: places order
README.md - Customer storefront → Supabase client: loads pharmacy
src/pages/Shop.jsx - Customer storefront → Prescription storage: uploads prescription
src/pages/Shop.jsx - Customer storefront → Pharmacy data: submits order
- Customer storefront → WhatsApp contact: offers contact
src/pages/Shop.jsx - Pharmacy dashboard → Supabase client: loads and updates
src/pages/Dashboard.jsx - Pharmacy dashboard → Medicine inventory: manages medicines
README.md - Pharmacy dashboard → Sales and reports: tracks sales
README.md - Pharmacy dashboard → Payment accounts: manages accounts
src/pages/Dashboard.jsx - Pharmacy dashboard → Pharmacy data: records direct sales
src/pages/Dashboard.jsx - Pharmacy administration → Supabase client: manages pharmacies
src/pages/Admin.jsx - Administrator → Pharmacy administration: administers tenants
README.md - Supabase client → Pharmacy data: reads and writes
src/supabase.js - Pharmacy data → Sales and reports: stores sales records
README.md