How sugurthipallavi/product-inventory-api works
This is a Flask product-inventory application with a browser dashboard and REST API. The main workflow is a user managing products in the dashboard: frontend JavaScript sends requests to Flask, which queries or changes product records and returns JSON for display. The API also supports category filtering, low-stock lookup, stock updates, and inventory summaries. The README documents PostgreSQL, though the sampled app.py defaults to SQLite unless DB_URL is set. frontend/index.html was not sampled, so its internal wiring is not shown.
Main entry points: app.py Inventory API · index.html Dashboard page · script.js Dashboard actions
Components 7
Web dashboard
- Dashboard page
frontend/index.html - Dashboard actions
frontend/script.js
Flask application
- Inventory API
app.py
Inventory storage
- Product records
app.py - PostgreSQL database
Other components
- Dashboard user
- REST API client
Connections 6
- Dashboard user → Dashboard page: uses
README.md - Dashboard page → Inventory API: serves page
app.py - Dashboard actions → Inventory API: requests data
frontend/script.js - Inventory API → Product records: queries and updates
app.py - Product records → PostgreSQL database: persists records
README.md - REST API client → Inventory API: calls endpoints
README.md