This is a lightweight full-stack web application I built using Flask (Python) for the backend and plain HTML/CSS for the frontend.
Itβs a simple, clean app to manage inventory items β including name, quantity, price, and category β with persistent data storage using SQLite.
The project includes a working CRUD interface (Create, Read, Update, Delete), a search feature to find items by name, and input validation to prevent bad data entries.
- β Add, edit, delete, and list inventory items (name, quantity, price, category)
- π Search inventory items by name
- π‘οΈ Input validation to ensure proper data (no negative values, all fields required)
- π¦ Persistent database storage using SQLite
- π» Frontend built with plain HTML and basic styling
- Python 3.12+
- Flask (Micro web framework)
- SQLite (Lightweight database)
- HTML5 + CSS (Basic UI)
## π Project Structure
Inventory Tracker with SQLite and Python/
βββ app.py
βββ inventory.db
βββ /templates
β βββ index.html
β βββ add.html
β βββ edit.html
βββ (optional /static for future CSS or images)
git clone https://github.com/Samuelr2112/Inventory-Tracker-with-SQLite-and-Python.git
cd Inventory-Tracker-with-SQLite-and-Python
- Install Flask Make sure Flask is installed:
pip install flask
(You don't need to install SQLite β it comes built-in with Python.)
- Start the App Run the Flask app:
python app.py
The server will start at:
http://127.0.0.1:5000
- Use the App Open your browser and go to http://127.0.0.1:5000
Add, edit, delete, and search inventory items
All changes are saved in the inventory.db SQLite database