How raneemaz/cedarlink works
CedarLink is a multi-vendor marketplace: customers discover local stores and products, manage a multi-store cart, preview and place cash-on-delivery orders, then track and review delivered purchases. Vendors manage stores, inventory, availability and fulfilment; admins approve marketplace participants and moderate content. The map separates the React client, Flask routes, business services and SQLAlchemy state. README capabilities are included where source excerpts are absent; those unsampled branches are shown without speculative internal call edges.
Main entry points: App.jsx Marketplace SPA · extensions.py Marketplace database · routes JSON API · order_service.py Order lifecycle
Components 26
React marketplace
- Marketplace SPA
frontend/src/App.jsx - Storefront discovery
frontend/src/pages/Stores - Cart and checkout
frontend/src/pages/Checkout - Accounts and settings
frontend/src/pages/Settings - Reviews interface
frontend/src/components/reviews - Admin console
frontend/src/pages/Admin
Flask API
- JSON API
app/routes - Store endpoints
app/routes/store_routes.py - Review endpoints
app/routes/review_routes.py - Authentication endpoints
app/routes/auth_routes.py - Product endpoints
app/routes/product_routes.py
Commerce services
- Order lifecycle
app/services/order_service.py - Store availability and location
app/services/store_service.py - Coupon rules
app/services/coupon_service.py
Accounts and trust
- Review and moderation logic
app/services/review_service.py - Two-factor and recovery
app/services/two_factor_service.py - Shopping interests
app/services/shopping_preferences_service.py - Notifications
app/services/notification_service.py
Marketplace data
- Marketplace database
app/extensions.py - Store records
app/models/store.py - Products and categories
app/models/product.py - Orders and coupons
app/models/order.py - Review records
app/models/review.py
Other components
- Customer
- Vendor
- Admin
Connections 32
- Customer → Marketplace SPA: uses
- Vendor → Marketplace SPA: uses
- Admin → Marketplace SPA: uses
- Marketplace SPA → Storefront discovery: routes to
frontend/src/App.jsx - Marketplace SPA → Cart and checkout: routes to
frontend/src/App.jsx - Marketplace SPA → Accounts and settings: routes to
frontend/src/App.jsx - Marketplace SPA → Admin console: routes to
frontend/src/App.jsx - Marketplace SPA → Reviews interface: routes to
frontend/src/App.jsx - Marketplace SPA → JSON API: calls
- JSON API → Product endpoints: dispatches
- JSON API → Store endpoints: dispatches
- JSON API → Authentication endpoints: dispatches
- JSON API → Review endpoints: dispatches
- JSON API → Order lifecycle: dispatches
- Product endpoints → Shopping interests: reads interests
app/routes/product_routes.py - Store endpoints → Store availability and location: calls
app/routes/store_routes.py - Review endpoints → Review and moderation logic: calls
app/routes/review_routes.py - Authentication endpoints → Two-factor and recovery: calls
app/routes/auth_routes.py - Order lifecycle → Coupon rules: validates coupons
app/services/order_service.py - Order lifecycle → Store availability and location: checks availability
app/services/order_service.py - Order lifecycle → Notifications: notifies
app/services/order_service.py - Review and moderation logic → Review records: writes
app/services/review_service.py - Order lifecycle → Orders and coupons: writes orders
app/services/order_service.py - Store availability and location → Store records: updates
app/services/store_service.py - Product endpoints → Products and categories: reads products
app/routes/product_routes.py - Coupon rules → Marketplace database: uses persistence
app/services/coupon_service.py - Two-factor and recovery → Marketplace database: uses persistence
app/services/two_factor_service.py - Shopping interests → Marketplace database: uses persistence
app/services/shopping_preferences_service.py - Notifications → Marketplace database: uses persistence
app/services/notification_service.py - Marketplace database → Store records: stores
app/models/store.py - Marketplace database → Products and categories: stores
app/models/product.py - Marketplace database → Orders and coupons: stores
app/services/order_service.py