How thanhklt/sobie-swimwear-e-commerce works
Sobie is a swimwear e-commerce application. Its principal customer workflow is to browse the catalog, manage a cart, and place and track an order; identity, promotions, inventory, payment, and shipping support related business stages. The README describes a modular monolith and a Route → Service → Repository pattern, but also says the repository is only a scaffold—claims that conflict with the sampled runtime code. The graph follows the shown code and indexed references; unsampled modules are included as documented capabilities, with uncertain connections omitted.
Main entry points: main.py Application · ordering/service.py Ordering Service · shopping/service.py Shopping Service · catalog/service.py Catalog Service
Components 27
Storefront Commerce
- Catalog Routes
app/modules/catalog/router.py - Catalog Service
app/modules/catalog/service.py - Catalog Repository
app/modules/catalog/repository.py - Shopping Routes
app/modules/shopping/router.py - Shopping Service
app/modules/shopping/service.py - Shopping Repository
app/modules/shopping/repository.py
Identity Access
- Identity Routes
app/modules/identity/router - Identity Services
app/modules/identity/service - Identity Facade
app/modules/identity/facade.py
Order Operations
- Ordering Routes
app/modules/ordering/router.py - Ordering Service
app/modules/ordering/service.py - Ordering Repository
app/modules/ordering/repository.py - Promotion Service
app/modules/promotion/service.py - Promotion Routes
app/modules/promotion/router.py - Inventory Service
app/modules/inventory/service.py - Payment Service
app/modules/payment/service.py - Shipping Service
app/modules/shipping/service.py - Reporting Service
app/modules/reporting/service.py - Email Notifications
app/modules/notification/service.py
Shared Platform
- Application
app/main.py - Database Engine
app/database/engine.py - Transactions
app/database/transaction.py - Session Security
app/security/session.py - HTML Rendering
app/shared/web/rendering.py
Other components
- Customer
- PostgreSQL
- Email Provider
Connections 35
- Customer → Application: sends requests
README.md - Application → Catalog Routes: registers
app/main.py - Application → Identity Routes: registers
app/main.py - Application → Ordering Routes: registers
app/main.py - Application → Shopping Routes: registers
app/main.py - Application → Promotion Routes: registers
app/main.py - Application → Shipping Service: registers routes
- Application → Identity Services: builds services
app/main.py - Application → Email Notifications: configures email
app/main.py - Application → Session Security: installs middleware
app/main.py - Application → Database Engine: uses sessions
app/main.py - Catalog Routes → Catalog Service: calls
app/modules/catalog/service.py - Catalog Service → Catalog Repository: queries
app/modules/catalog/service.py - Shopping Routes → Shopping Service: calls
app/modules/shopping/router.py - Shopping Service → Shopping Repository: queries
app/modules/shopping/service.py - Shopping Service → Catalog Service: gets variants
app/modules/shopping/service.py - Shopping Service → Inventory Service: checks stock
app/modules/shopping/service.py - Shopping Service → Promotion Service: gets promotions
app/modules/shopping/service.py - Identity Routes → Identity Services: dispatches
- Session Security → Identity Facade: authenticates sessions
app/security/session.py - Identity Facade → Identity Services: delegates session auth
app/modules/identity/facade.py - Ordering Routes → Ordering Service: calls
app/modules/ordering/router.py - Ordering Service → Ordering Repository: queries
app/modules/ordering/service.py - Ordering Service → Shopping Service: reads cart
app/modules/ordering/service.py - Ordering Service → Catalog Service: gets variants
app/modules/ordering/service.py - Ordering Service → Inventory Service: locks stock
app/modules/ordering/service.py - Ordering Service → Promotion Service: quotes discounts
app/modules/ordering/service.py - Ordering Service → Identity Facade: reads profile
app/modules/ordering/service.py - Promotion Routes → Promotion Service: calls
app/modules/promotion/router.py - Inventory Service → Database Engine: uses sessions
- Database Engine → PostgreSQL: connects
app/database/engine.py - Email Notifications → Email Provider: sends email
- Shipping Service → Ordering Service: uses order service
app/modules/shipping/service.py - Application → HTML Rendering: registers templates
app/main.py - Transactions → Ordering Service: wraps checkout work
app/modules/ordering/service.py