How krystalsoftwarebangladesh/ecommerce-backend works
This is a Django e-commerce backend with storefront and management APIs. The principal checkout flow accepts a cart, validates customer and shipping data, calculates totals, and creates an order while coordinating inventory reservations, sales, shipping, and email. The repository also contains catalog, customer, content, and accounting domains. Edges are limited to relationships visible in the supplied source index or excerpts; unsampled API wiring and subsystem internals are not inferred.
Main entry points: checkout_api/services.py Checkout Service · sale_api/services.py Sales Service · reservation.py Reservation Service · transaction_api/services.py Transactions
Components 24
Storefront Commerce
- Checkout Service
checkout_api/services.py - Checkout API
checkout_api/views/v1/checkout.py - Cart Service
cart_api/services/cart.py - Cart Records
cart_api/models/cart.py - Customer Profiles
customer_api/models/customer.py - Shipping Service
shipping_api/services/shipping.py - Sales Service
sale_api/services.py - Sales Records
sale_api/models/sale.py
Catalog and Content
- Product Catalog
product_api/models/product.py - Categories
category_api/services/category.py - Brands
product_api/models/brand.py - Blog Content
blog_api/services/blog_post.py - Product Reviews
review_api/services/review.py - Content Scanning
content_security_api/services/scanner.py
Commerce Operations
- Reservation Service
inventory_api/services/reservation.py - Inventory Records
inventory_api/models/inventory.py - Purchasing
purchase_api/services.py
Accounting
- Chart of Accounts
account_api/models/chart_of_account.py - Transactions
transaction_api/services.py - Accounting Records
transaction_api/models/transaction.py
Platform Services
- Email Service
email_api/services/email.py - Email Tasks
email_api/tasks.py - Request Log Storage
request_log_api/services/storage.py
Other components
- API Client
Connections 23
- API Client → Checkout API: calls API
README.md - Checkout API → Checkout Service: delegates
- Checkout Service → Cart Records: locks cart
checkout_api/services.py - Checkout Service → Cart Service: uses cart logic
checkout_api/services.py - Checkout Service → Customer Profiles: reads customer
checkout_api/services.py - Checkout Service → Shipping Service: gets rates
checkout_api/services.py - Checkout Service → Reservation Service: reserves stock
checkout_api/services.py - Checkout Service → Sales Service: creates sale
checkout_api/services.py - Checkout Service → Email Service: queues email
checkout_api/services.py - Cart Service → Cart Records: reads and writes
cart_api/services/cart.py - Reservation Service → Inventory Records: uses records
inventory_api/services/reservation.py - Reservation Service → Product Catalog: references products
inventory_api/services/reservation.py - Sales Service → Chart of Accounts: uses accounts
sale_api/services.py - Sales Service → Transactions: posts entries
sale_api/services.py - Sales Service → Reservation Service: uses reservations
sale_api/services.py - Sales Service → Sales Records: creates sales
sale_api/services.py - Purchasing → Chart of Accounts: uses accounts
purchase_api/services.py - Purchasing → Inventory Records: records movements
purchase_api/services.py - Purchasing → Transactions: posts entries
purchase_api/services.py - Transactions → Accounting Records: creates entries
transaction_api/services.py - Chart of Accounts → Transactions: creates entries
- Email Service → Email Tasks: dispatches tasks
email_api/tasks.py - Product Reviews → Product Catalog: reviews products