How owshuhnee/eldr works
ELDR is an accessible marketplace for older adults and caregivers. The main journey is browsing and filtering verified products, adding items to a cart, checking out, and viewing order history; account, onboarding, caregiver linking, reviews, wishlists, and administration are supporting capabilities. The graph distinguishes frontend pages, Flask route handlers, shared persistence, and accessibility UI. Several page-to-endpoint relationships are documented by fetch calls; other unsampled integrations are omitted rather than inferred.
Main entry points: __init__.py Flask app and blueprints · db.py Database sessions · models.py Marketplace models · orders.py Order operations
Components 31
Marketplace frontend
- Browse products
frontend/src/app/page.tsx - Need filtering
frontend/src/lib/filterProducts.ts - Product detail
frontend/src/app/product/[id]/page.tsx - Cart
frontend/src/app/cart/page.tsx - Checkout
frontend/src/app/checkout/page.tsx - Order history
frontend/src/app/orders/page.tsx - Order confirmation
frontend/src/app/order-confirmation/page.tsx - Account and auth
frontend/src/app/account/page.tsx - Guided onboarding
frontend/src/app/onboarding/page.tsx - Caregiver links
frontend/src/app/caregiver/page.tsx - Wishlist
frontend/src/app/wishlist/page.tsx - Product reviews
frontend/src/components/ui/ReviewsSection.tsx - Admin console
frontend/src/app/admin/page.tsx
Flask API
- Flask app and blueprints
backend/app/__init__.py - Authentication
backend/app/routes/auth.py - Product catalog
backend/app/routes/products.py - Cart operations
backend/app/routes/cart.py - Order operations
backend/app/routes/orders.py - Onboarding data
backend/app/routes/onboarding.py - Caregiver linking
backend/app/routes/caregiver.py - Wishlist operations
backend/app/routes/wishlist.py - Review operations
backend/app/routes/reviews.py - Administration
backend/app/routes/admin.py
Persistence
- Marketplace models
backend/app/models.py - Database sessions
backend/app/db.py - PostgreSQL database
Accessible experience
- Application layout
frontend/src/app/layout.tsx - Accessibility settings
frontend/src/context/AccessibilityContext.tsx - Navigation and toggle
frontend/src/components/ui/Navbar.tsx - Accessibility toggle
frontend/src/components/ui/AccessibilityToggle.tsx
Other components
- Shopper or caregiver
Connections 44
- Shopper or caregiver → Browse products: browses
README.md - Browse products → Product catalog: fetches catalog
frontend/src/app/page.tsx - Browse products → Need filtering: filters products
frontend/src/app/page.tsx - Shopper or caregiver → Cart: shops
README.md - Cart → Cart operations: requests cart
frontend/src/app/cart/page.tsx - Shopper or caregiver → Checkout: checks out
README.md - Checkout → Order operations: submits order
- Order history → Order operations: fetches history
frontend/src/app/orders/page.tsx - Shopper or caregiver → Order history: views orders
README.md - Shopper or caregiver → Account and auth: creates account
README.md - Account and auth → Authentication: authenticates
- Shopper or caregiver → Guided onboarding: personalizes
README.md - Guided onboarding → Onboarding data: saves preferences
- Caregiver links → Caregiver linking: requests links
frontend/src/app/caregiver/page.tsx - Shopper or caregiver → Caregiver links: links accounts
README.md - Shopper or caregiver → Wishlist: saves products
README.md - Wishlist → Wishlist operations: manages wishlist
- Product detail → Product reviews: shows reviews
- Product reviews → Review operations: loads reviews
- Admin console → Administration: manages listings
- Flask app and blueprints → Authentication: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Product catalog: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Cart operations: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Order operations: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Onboarding data: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Caregiver linking: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Wishlist operations: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Review operations: registers blueprint
backend/app/__init__.py - Flask app and blueprints → Administration: registers blueprint
backend/app/__init__.py - Product catalog → Database sessions: opens sessions
backend/app/routes/products.py - Product catalog → Marketplace models: queries products
backend/app/routes/products.py - Cart operations → Database sessions: opens sessions
backend/app/routes/cart.py - Cart operations → Marketplace models: queries cart items
backend/app/routes/cart.py - Order operations → Database sessions: opens sessions
backend/app/routes/orders.py - Order operations → Marketplace models: queries orders
backend/app/routes/orders.py - Caregiver linking → Database sessions: opens sessions
backend/app/routes/caregiver.py - Caregiver linking → Marketplace models: queries links
backend/app/routes/caregiver.py - Review operations → Database sessions: opens sessions
backend/app/routes/reviews.py - Review operations → Marketplace models: queries reviews
backend/app/routes/reviews.py - Database sessions → PostgreSQL database: connects to
backend/app/db.py - Marketplace models → Database sessions: uses base
backend/app/models.py - Application layout → Accessibility settings: provides context
frontend/src/app/layout.tsx - Navigation and toggle → Accessibility toggle: renders toggle
frontend/src/components/ui/Navbar.tsx - Shopper or caregiver → Navigation and toggle: uses navigation