How erriswheel/botaniquehost works
Botanique is an online botanical-products storefront with an Angular/Ionic client and an Express API. Customers browse the catalog, authenticate, place orders, pay through Maya, and track order status; the backend also supports account, review, notification, and admin workflows. The graph follows documented routes and sampled calls, plus the SOURCE INDEX import references. Unsampled route internals and several client pages are represented as subsystem nodes, so uncertain internal calls are omitted.
Main entry points: server.ts Express API · app.routes.ts Client routes · product-catalog.service.ts Catalog service · auth.ts Token and role checks
Components 31
Storefront
- Client routes
src/app/app.routes.ts - Catalog browsing
src/app/product/product.page.ts - Product details
src/app/product-detail/product-detail.page.ts - Catalog service
src/app/shared/product-catalog.service.ts - Product data
src/app/shared/product-data.ts - Product API
backend/src/routes/products.ts - Reviews
backend/src/routes/reviews.ts
Identity
- Client authentication
src/app/shared/auth.service.ts - Sign-in and signup
src/app/login/login.page.ts - Auth routes
backend/src/routes/auth.ts - Token and role checks
backend/src/middleware/auth.ts - Firebase verification
backend/src/services/firebase.ts - User profiles
backend/src/services/users.ts
Commerce
- Checkout
src/app/checkout/checkout.page.ts - Profile and orders
src/app/profile/profile.page.ts - Order tracking
src/app/track-order/track-order.page.ts - Orders client service
src/app/shared/orders.service.ts - Cart and wishlist API
backend/src/routes/cart.ts - Order API
backend/src/routes/orders.ts - Payment orchestration
backend/src/services/orderPayments.ts - Maya gateway
backend/src/services/maya.ts
Operations
- Admin console
src/app/admin/admin.page.ts - Support and content APIs
backend/src/routes/support.ts - Admin API
backend/src/routes/admin.ts - Notifications
backend/src/services/notifications.ts
API platform
- Authenticated API client
src/app/shared/api.service.ts - Express API
backend/src/server.ts - Application database
backend/src/db.ts - Runtime configuration
backend/src/config.ts
Other components
- Customer
- Maya payments
Connections 46
- Customer → Client routes: uses storefront
src/app/app.routes.ts - Client routes → Catalog browsing: routes to
src/app/app.routes.ts - Client routes → Product details: routes to
src/app/app.routes.ts - Client routes → Checkout: routes to
src/app/app.routes.ts - Client routes → Profile and orders: routes to
src/app/app.routes.ts - Client routes → Order tracking: routes to
src/app/app.routes.ts - Client routes → Admin console: routes to
src/app/app.routes.ts - Catalog browsing → Catalog service: loads catalog
src/app/product/product.page.ts - Product details → Catalog service: loads product
src/app/product-detail/product-detail.page.ts - Catalog service → Product data: maps products
src/app/shared/product-catalog.service.ts - Catalog service → Product API: fetches catalog
src/app/shared/product-catalog.service.ts - Sign-in and signup → Client authentication: authenticates
- Checkout → Client authentication: uses session
src/app/checkout/checkout.page.ts - Checkout → Catalog service: loads catalog
src/app/checkout/checkout.page.ts - Checkout → Orders client service: loads orders
src/app/checkout/checkout.page.ts - Profile and orders → Client authentication: uses session
src/app/profile/profile.page.ts - Profile and orders → Orders client service: loads orders
src/app/profile/profile.page.ts - Order tracking → Orders client service: loads order
src/app/track-order/track-order.page.ts - Orders client service → Authenticated API client: requests orders
src/app/shared/orders.service.ts - Authenticated API client → Client authentication: gets token
src/app/shared/api.service.ts - Authenticated API client → Express API: sends API requests
src/app/shared/api.service.ts - Admin console → Authenticated API client: calls API
src/app/admin/admin.page.ts - Express API → Auth routes: mounts routes
backend/src/server.ts - Express API → Product API: mounts routes
backend/src/server.ts - Express API → Cart and wishlist API: mounts routes
backend/src/server.ts - Express API → Order API: mounts routes
backend/src/server.ts - Express API → Reviews: mounts routes
backend/src/server.ts - Express API → Support and content APIs: mounts routes
backend/src/server.ts - Express API → Admin API: mounts routes
backend/src/server.ts - Client authentication → Auth routes: syncs profile
- Token and role checks → Firebase verification: verifies token
backend/src/middleware/auth.ts - Token and role checks → User profiles: resolves user
backend/src/middleware/auth.ts - Auth routes → Token and role checks: uses auth checks
backend/src/routes/auth.ts - Order API → Token and role checks: guards requests
backend/src/routes/orders.ts - Reviews → Token and role checks: guards requests
backend/src/routes/reviews.ts - Order API → Payment orchestration: delegates payments
- Payment orchestration → Maya gateway: creates checkout
backend/src/services/orderPayments.ts - Maya gateway → Maya payments: calls gateway
- Payment orchestration → Notifications: notifies status
backend/src/services/orderPayments.ts - Product API → Application database: reads products
- Order API → Application database: reads and writes
backend/src/routes/orders.ts - Reviews → Application database: reads and writes
backend/src/routes/reviews.ts - User profiles → Application database: reads profiles
backend/src/services/users.ts - Express API → Runtime configuration: configures server
backend/src/server.ts - Maya gateway → Runtime configuration: uses credentials
backend/src/services/maya.ts - Payment orchestration → Application database: updates payments
backend/src/services/orderPayments.ts