A modern Flask + SQLite inventory app.
# 1. Install dependencies
pip install -r requirements.txt
# 2. Run the app
python app.py
# 3. Open in browser
http://localhost:5000inventory/
├── app.py ← Flask backend + all API routes
├── inventory.db ← SQLite database (auto-created on first run)
├── requirements.txt
└── templates/
└── index.html ← Full frontend (HTML + CSS + JS)
| Method | Route | Description |
|---|---|---|
| GET | /api/items | List/search items |
| POST | /api/items | Create item |
| PUT | /api/items/ | Update item |
| DELETE | /api/items/ | Delete item |
| GET | /api/stats | Dashboard stats |
| GET | /api/export/csv | Download CSV |