
Pizzeriapp
Online ordering system for a local pizzeria. Configurable catalog with option groups, prices always quoted on the backend, anonymous checkout with price snapshots and an admin panel.
- Price is never computed on the client.
POST /api/orders/quotevalidates product, options and ownership on the backend and recalculates everything before creating the order. - Each order line stores a snapshot of
product_name,unit_priceand options as JSONB: if the price changes tomorrow, past orders do not. The insert oforders+order_itemsruns inside a transaction. - 8 test suites with Vitest + Supertest.
app.tsis split fromindex.tsso the API can be tested without binding a port. Raw SQL withnode-pg-migrateand arepositories/layer instead of an ORM.
After inactivity, the first load may take ~20–30s (Render Free).





