CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/health-checks

Health check and readiness endpoints for web services — liveness probes,

97

3.61x
Quality

99%

Does it follow best practices?

Impact

94%

3.61x

Average score across 4 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-4/

Build an Order Processing Service

Problem/Feature Description

Build an order processing backend service using Express and TypeScript. The service will be deployed in a Kubernetes cluster and sits behind a service mesh. It connects to a PostgreSQL database and a Redis cache.

Endpoints:

  • POST /api/orders -- create an order (fields: customerId, items array with productId and quantity)
  • GET /api/orders/:id -- get order by ID
  • GET /api/orders?customerId=X -- list orders for a customer
  • PATCH /api/orders/:id/status -- update order status (pending, confirmed, shipped, delivered)

Assume database and Redis connection modules already exist as db.ts (exports a pool with .query()) and cache.ts (exports a redis client with .get()/.set()/.ping()). You do NOT need to implement these -- just import and use them.

Output Specification

Produce:

  • src/app.ts -- Express application with middleware and route setup
  • src/routes/orders.ts -- Order route handlers
  • src/types.ts -- TypeScript interfaces for Order, OrderItem
  • package.json -- With dependencies
  • k8s/deployment.yaml -- Kubernetes Deployment manifest for this service

evals

tile.json