Overview
Production backend for a D2C brand's storefront, admin dashboard and Tauri mobile app: a single Actix Web binary exposing 120+ REST endpoints across 16 domain modules (catalog, cart, checkout, orders, payments, discounts, reviews, wishlist, blogs, custom pages, sales channels, files). PostgreSQL via SQLx with per-module migrations and a built-in CLI (migrate, create-admin, odoo-import). JWT auth with Argon2 password hashing and role-based admin extractors (owner/admin/staff). Cashfree checkout with HMAC-SHA256 webhook verification, stock reservations and partial payments. Odoo ERP integration via JSON-RPC: bulk catalog import plus a transactional outbox worker that pushes orders reliably. Background workers sync the catalog to Meta and Google Shopping feeds and recompute Shopify-style smart collections. Content-addressed file storage with immutable caching, and a multi-stage Docker build for deployment.