Idempotent API design — safe retries for POST endpoints, idempotency keys,
93
90%
Does it follow best practices?
Impact
100%
10.00xAverage score across 4 eval scenarios
Passed
No known issues
Build a simple checkout page for an online store. The page should have a form where the customer enters their name and selects an item, then clicks "Place Order" to submit their order.
The backend should be an Express.js server with a POST /api/orders endpoint that creates a new order in an in-memory array (no database needed) and returns the created order as JSON.
The frontend should be a single HTML file that shows the form and displays a confirmation message when the order is placed successfully.
Produce:
A server.js file with an Express app that:
POST /api/orders route that accepts { customerName, item } and returns the created order with an idA public/index.html file with:
POST /api/orders using fetch