How seangt01/eflora-system works
This is a Flask-based multi-store commerce platform: customers browse stores and place orders, sellers manage products and fulfillment, and riders support delivery. The graph preserves the major role-based workflows, checkout and payment verification, communications, and operational reporting. The README is empty and several central modules are unsampled, so those components are included from the source index and tree; links are limited to relationships evidenced by excerpts or index references.
Main entry points: models.py Commerce data models · __init__.py Flask application · auth.py Account access · otp_delivery.py OTP delivery
Components 30
Application Core
- Flask application
app/__init__.py - Framework extensions
app/extensions.py - Commerce data models
app/models.py - Pages and storefront
app/templates_routes.py
Marketplace Commerce
- Customer workflows
app/customer.py - Cart and checkout
app/checkout_routes.py - Payment verification
app/payment_verification_routes.py - Customer chat
app/chat.py - Chat transport
app/chat_socket.py
Store Operations
- Seller workflows
app/seller.py - Store administration
app/store_admin_routes.py - Rider workflows
app/rider.py - Product archiving
app/archive_routes.py - Image storage helpers
app/utils/cloudinary_helper.py - Seller notifications
app/utils/seller_notifications.py
Identity and Messaging
- Account access
app/auth.py - Phone identity helpers
app/utils/phone_utils.py - OTP verification
app/utils/otp_service.py - OTP delivery
app/utils/otp_delivery.py - Email delivery
app/utils/email_helper.py - SMS delivery
app/utils/sms_helper.py - Push notifications
app/utils/push.py
Reporting and Health
- Reports and forecasts
app/utils/report_service.py - System health checks
app/system_checker/runner.py
Other components
- Customer
- Seller
- Rider
- Email provider
- SMS provider
- Firebase messaging
Connections 37
- Customer → Account access: signs in
- Customer → Customer workflows: uses storefront
- Seller → Seller workflows: manages store
- Rider → Rider workflows: handles delivery
- Flask application → Account access: registers routes
app/__init__.py - Flask application → Pages and storefront: registers routes
app/__init__.py - Flask application → Cart and checkout: registers routes
app/__init__.py - Flask application → Store administration: registers routes
app/__init__.py - Flask application → Commerce data models: loads models
app/__init__.py - Account access → Commerce data models: uses account records
app/auth.py - Account access → Phone identity helpers: normalizes identifiers
app/auth.py - Account access → OTP verification: generates codes
app/auth.py - Account access → OTP delivery: delivers codes
app/auth.py - OTP delivery → Phone identity helpers: resolves destination
app/utils/otp_delivery.py - OTP delivery → OTP verification: uses code helpers
app/utils/otp_delivery.py - OTP delivery → Email delivery: sends email
app/utils/otp_delivery.py - OTP delivery → SMS delivery: sends SMS
app/utils/otp_delivery.py - Email delivery → Email provider: queues messages
app/utils/email_helper.py - SMS delivery → SMS provider: sends messages
app/utils/sms_helper.py - Cart and checkout → Commerce data models: creates orders
app/checkout_routes.py - Cart and checkout → Seller notifications: notifies sellers
app/checkout_routes.py - Cart and checkout → Image storage helpers: uses image helpers
app/checkout_routes.py - Payment verification → Commerce data models: updates payment records
app/payment_verification_routes.py - Store administration → OTP delivery: delivers invitations
app/store_admin_routes.py - Store administration → Email delivery: sends invitation email
app/store_admin_routes.py - Store administration → SMS delivery: sends invitation SMS
app/store_admin_routes.py - Store administration → Commerce data models: manages admin records
app/store_admin_routes.py - Product archiving → Commerce data models: archives products
app/archive_routes.py - Product archiving → Image storage helpers: deletes images
app/archive_routes.py - Image storage helpers → Email provider: optional storage integration
- Push notifications → Firebase messaging: sends notifications
app/utils/push.py - Seller notifications → Commerce data models: creates alerts
app/utils/seller_notifications.py - Seller notifications → Email delivery: sends stock alerts
app/utils/seller_notifications.py - Customer chat → Chat transport: uses transport
- Reports and forecasts → Commerce data models: queries commerce data
app/utils/report_service.py - System health checks → Flask application: checks application
- System health checks → Commerce data models: checks inventory