How is213-ecoshop/ecoshop-main works
SustainaMart is a Flask microservices e-commerce platform with a GraphQL aggregation service and RabbitMQ-based asynchronous workflows. The user-facing GraphQL service exposes cart and recommendation queries; the README describes separate commerce, delivery, trade-in, and gamification capabilities. The graph preserves these documented domains, while linking shared helpers only where the excerpts or source index show references. Many service-to-service routes and event subscriptions are not shown, so those connections are omitted rather than inferred.
Main entry points: supabase.py Supabase Client · amqp_lib.py AMQP Helpers · cors_config.py CORS Config · delivery.py Delivery Service
Components 24
Commerce Services
- Profile Service
profile/profile.py - Cart Service
cart/cart.py - Cart Products
cart_product/cart_product.py - Payment Service
payment/payment.py - Order Placement
place_order/place_order.py - Delivery Service
delivery/delivery.py - Recommendations
recommendation/recommendation.py
Rewards and Trade-in
- Trade-in Service
trade_in/app.py - Trade Verification
verification/app.py - Mission Service
mission/app.py - Leaderboard
leaderboard/app.py - Reward Orchestrator
reward_orchestrator/events.py - Voucher Service
voucher/app.py - Wallet Service
wallet/app.py
API and Messaging
- GraphQL API
graphql/server.py - Query Resolvers
graphql/resolvers.py - GraphQL Types
graphql/graphql_types.py - Email Service
send_email/send_email.py - RabbitMQ
Shared Infrastructure
- Supabase Client
utils/supabase.py - AMQP Helpers
utils/amqp_lib.py - HTTP Invoker
utils/invokes.py - CORS Config
utils/cors_config.py
Other components
- Shopper
Connections 27
- Shopper → GraphQL API: queries
graphql/server.py - GraphQL API → Query Resolvers: dispatches
graphql/server.py - GraphQL API → GraphQL Types: types queries
graphql/server.py - Cart Service → Supabase Client: uses client
cart/cart.py - Cart Service → CORS Config: enables CORS
cart/cart.py - Cart Service → AMQP Helpers: uses helpers
cart/cart.py - Cart Products → HTTP Invoker: uses invoker
cart_product/cart_product.py - Cart Products → CORS Config: enables CORS
cart_product/cart_product.py - Delivery Service → Supabase Client: uses client
delivery/delivery.py - Delivery Service → CORS Config: enables CORS
delivery/delivery.py - Delivery Service → HTTP Invoker: calls HTTP
delivery/delivery.py - Delivery Service → AMQP Helpers: consumes and publishes
delivery/delivery.py - Payment Service → Supabase Client: uses client
payment/payment.py - Payment Service → CORS Config: enables CORS
payment/payment.py - Payment Service → AMQP Helpers: uses helpers
payment/payment.py - Order Placement → HTTP Invoker: uses invoker
place_order/place_order.py - Order Placement → CORS Config: enables CORS
place_order/place_order.py - Order Placement → AMQP Helpers: uses helpers
place_order/place_order.py - Recommendations → Supabase Client: uses client
recommendation/recommendation.py - Recommendations → HTTP Invoker: uses invoker
recommendation/recommendation.py - Recommendations → CORS Config: enables CORS
recommendation/recommendation.py - Recommendations → AMQP Helpers: uses helpers
recommendation/recommendation.py - Mission Service → Supabase Client: uses client
mission/app.py - Mission Service → RabbitMQ: publishes events
- Trade-in Service → Supabase Client: uses storage
- Trade Verification → Supabase Client: uses client
verification/app.py - Wallet Service → AMQP Helpers: consumes messages
wallet/app.py