E-commerce
by @ops Coupon & Promotion Engine
Discount codes, promotion rules (percentage, fixed amount, BOGO), and redemption tracking with Redis guarding against a code being used past its limit under concurrent requests. The part of checkout that's deceptively easy to get wrong at the edges.
Loads this recipe straight into the wizard — every setting stays editable before you generate anything.
The stack
Install
# pulls this exact recipe straight from the Vault $ npx stacktora install coupon-promotion-engine --remote $ stacktora sync # generate the files
What you get
More from the Vault
Digital Asset & License Delivery
Selling downloads or license keys instead of physical goods — secure, expiring download links and license activation state in Postgres, Redis for fast validation on every activation check. Distinct from a physical-goods storefront or a marketplace.
Food Order & Delivery Tracking Backend
Order lifecycle from placed through delivered, with Redis for live status that needs to update in near-real-time. Distinct from the Marketplace recipe: this is a linear order-to-delivery pipeline, not multi-vendor listings.
Inventory & Order Management
Stock levels, orders, and fulfillment state as first-class Postgres records, with Redis for cart/session speed — the operational backend behind a storefront, not the storefront itself. Distinct from a checkout/payments starter: this is what happens after the payment succeeds.
Inventory Reservation & Overselling Prevention
Redis-backed distributed locking around the checkout moment so two customers can't both buy the last unit — distinct from Inventory & Order Management: that tracks stock levels generally, this specifically prevents overselling under real concurrency.