How alirahmanianaraki/django-ecommerce works
VoltPC is a Django computer-parts storefront. The principal customer journey is browsing and comparing products, managing a session cart, then reviewing and placing an order; account, wishlist, and wallet/payment capabilities support that journey. The graph includes the documented product branches and the sampled payment and wallet layers. Several view implementations were not sampled, so their internal call relationships are not asserted.
Main entry points: services.py Order Service · handlers.py Payment Event Handlers · myapp/models.py Product Data · orders/models.py Order Records
Components 22
Storefront
- Catalog and Search
myapp/views.py - Product Data
myapp/models.py - Product Comparison
myapp/comparison.py - Recently Viewed
myapp/recently_viewed.py
Customer Features
- Session Cart
cart/cart.py - Accounts and Profiles
users/views.py - Wishlist
wishlists/wishlist.py - Wishlist Pages
wishlists/views.py
Orders and Payments
- Checkout and Orders
orders/views.py - Order Service
orders/services.py - Order Records
orders/models.py - Order Emails
orders/emails.py - Stripe Payments
payments/services.py - Payment Event Handlers
payments/handlers.py - Payment Records
payments/models.py
Wallet and Ledger
- Wallet Service
wallets/services.py - Wallet Ledger
wallets/models.py - Wallet Top-ups
payments/topups.py - Wallet Refunds
payments/refunds.py
Other components
- Shopper
- Stripe
- Application Database
Connections 25
- Shopper → Catalog and Search: browses
README.md - Catalog and Search → Product Data: queries products
- Shopper → Product Comparison: compares products
- Shopper → Session Cart: manages cart
README.md - Shopper → Accounts and Profiles: manages account
README.md - Shopper → Wishlist Pages: manages wishlist
README.md - Wishlist Pages → Wishlist: delegates to
wishlists/views.py - Shopper → Checkout and Orders: checks out
README.md - Checkout and Orders → Order Service: places order
- Order Service → Order Records: creates records
orders/services.py - Order Service → Product Data: checks stock
orders/services.py - Order Service → Order Emails: sends confirmation
orders/services.py - Stripe Payments → Order Records: reads order
payments/services.py - Stripe Payments → Stripe: creates session
payments/services.py - Stripe → Payment Event Handlers: dispatches events
- Payment Event Handlers → Order Service: transitions order
payments/handlers.py - Payment Event Handlers → Payment Records: reads refunds
payments/handlers.py - Payment Event Handlers → Wallet Top-ups: routes top-ups
payments/handlers.py - Wallet Top-ups → Wallet Service: credits wallet
payments/topups.py - Wallet Refunds → Wallet Service: credits refund
payments/refunds.py - Wallet Service → Wallet Ledger: updates ledger
wallets/services.py - Order Records → Application Database: persists records
- Product Data → Application Database: persists catalog
- Wallet Ledger → Application Database: persists ledger
- Payment Records → Application Database: persists payment state