A small example service for trying diff-tour: an order and checkout backend written in TypeScript. It has no dependencies (Node.js 23.6 or later runs the TypeScript directly).
npm test
npm start # POST /orders/:id/checkoutmain: orders, checkout, a payment service client and a batch that reconciles pending paymentsfeature/payment-retry: retries transient payment failures at checkoutfeature/coupons: coupon codes that discount an order at checkoutfeature/daily-sales: a daily sales report and a CLI that prints it
src/orders/orders and the checkout business logicsrc/payment/client for the external payment servicesrc/handlers/mapping to and from HTTP requestssrc/jobs/scheduled batch jobssrc/app.tsdependency wiringdb/migrations/database schema (applied in numeric order at startup)
