How longnguyen1806/techwiz7-marketlink-egreen-basket works
MarketLink connects shoppers with local market producers. Shoppers discover products and markets, build a multi-stall cart, reserve pickup orders, then collect in person and may leave verified reviews. Farmers manage listings, stock, schedules and order fulfillment; administrators govern accounts, markets, moderation and reporting. The graph highlights checkout and order-state handling plus the supporting domain services. README documents additional capabilities not fully evidenced by sampled source; those are represented at subsystem level, with uncertain implementation links omitted.
Main entry points: pages Role-based web UI · services.py Notifications · models.py Product catalog · checkout_service.py Checkout reservations
Components 21
Web application
- Role-based web UI
frontend/src/pages - API clients
frontend/src/api
Shopping and fulfillment
- Orders and items
backend/orders/models.py - Checkout reservations
backend/orders/services/checkout_service.py - Order lifecycle
backend/orders/services/fsm.py - Verified reviews
backend/reviews/services/review_service.py - Favorites
backend/favorites/services/favorite_service.py
Market and catalog
- Product catalog
backend/catalog/models.py - AI listing review
backend/catalog/ai_review/service.py - Markets and pickup slots
backend/markets/models.py - Market schedule changes
backend/markets/services/market_service.py
Accounts and governance
- Accounts and profiles
backend/accounts/models.py - Authentication
backend/accounts/services/auth_service.py - Admin reports and flags
backend/system
Shared platform
- Notifications
backend/notifications/services.py - Notification records
backend/notifications/models.py - AI marketplace assistant
backend/chat_bot/services.py - MySQL domain data
Other components
- Shopper
- Gemini service
- OpenStreetMap services
Connections 33
- Shopper → Role-based web UI: browses and orders
README.md - Role-based web UI → API clients: requests data
- API clients → Checkout reservations: submits checkout
- Checkout reservations → Orders and items: creates orders
backend/orders/services/checkout_service.py - Checkout reservations → Product catalog: checks stock
backend/orders/services/checkout_service.py - Checkout reservations → Order lifecycle: records placement
backend/orders/services/checkout_service.py - Checkout reservations → Accounts and profiles: checks customer
backend/orders/services/checkout_service.py - Order lifecycle → Orders and items: updates lifecycle
backend/orders/services/fsm.py - Order lifecycle → Product catalog: adjusts stock
backend/orders/services/fsm.py - Order lifecycle → Notifications: sends updates
backend/orders/services/fsm.py - Verified reviews → Orders and items: checks completion
backend/reviews/services/review_service.py - Verified reviews → Admin reports and flags: raises review flags
backend/reviews/services/review_service.py - Favorites → Product catalog: references products
backend/favorites/services/favorite_service.py - AI listing review → Product catalog: reviews listings
backend/catalog/ai_review/service.py - AI listing review → Gemini service: requests evaluation
backend/catalog/ai_review/service.py - AI listing review → Notifications: reports decisions
backend/catalog/ai_review/service.py - Market schedule changes → Markets and pickup slots: updates schedules
backend/markets/services/market_service.py - Market schedule changes → Orders and items: checks affected orders
backend/markets/services/market_service.py - Market schedule changes → Order lifecycle: records history
backend/markets/services/market_service.py - Market schedule changes → Notifications: notifies farmers
backend/markets/services/market_service.py - Authentication → Accounts and profiles: authenticates users
backend/accounts/services/auth_service.py - Authentication → Notifications: disconnects sessions
backend/accounts/services/auth_service.py - Notifications → Notification records: stores notifications
backend/notifications/services.py - Notifications → Shopper: pushes updates
backend/notifications/services.py - AI marketplace assistant → Gemini service: uses AI optionally
backend/chat_bot/services.py - Role-based web UI → OpenStreetMap services: discovers nearby markets
README.md - Accounts and profiles → MySQL domain data: persists domain data
README.md - Product catalog → MySQL domain data: persists domain data
README.md - Markets and pickup slots → MySQL domain data: persists domain data
README.md - Orders and items → MySQL domain data: persists domain data
README.md - Role-based web UI → Authentication: signs in
README.md - Role-based web UI → Product catalog: discovers listings
README.md - Role-based web UI → Verified reviews: submits reviews
README.md