How nuthanm/product-deals-app works
Project type and purpose
• From the file tree and minimal README, this is a full-stack web application called “product-deals-app.”
• It serves a static frontend (HTML/CSS/JavaScript) to users and exposes a Node.js/Express backend API that handles product autocomplete and deal-lookup requests, using a local JSON data store.
File structure
• Top-level files:
• DEPLOYMENT.md, SETUP.md – deployment and setup instructions
• README.md – project title/description placeholder
• “backend” directory:
• server.js – Express server setup
• routes/index.js – API routing
• controllers/ – business logic for autocompleteController.js and dealsController.js
• models/ – domain objects (Product, ProductHistory, ProductResponse)
• data/products.json – the product dataset
• “src” directory:
• index.html – entry point
• assets/app.js – client-side logic (API calls, UI interactions)
• assets/styles.css – styling
• usage_policies.md, ai_code_copyright_guide.md – documentation
README for additional insights
• The README only contains the title, so rely on directory names and file content to infer that this is an Express-backed MVC API paired with a vanilla-JS frontend.