project · Level 2 · 45 min
You're building a product search API for an e-commerce platform. Users need to search for products by name, filter by category and price range, and sort results.
Use TypeScript/JavaScript. No database required—use in-memory data. Return JSON.
Code for your API endpoint(s) and a short note on how you'd scale this.