A simple web app to track products in different locations.
You can:
- Add/Edit/Delete Products
- Add/Edit/Delete Locations
- Record Product Movements (in, out, transfer)
- See the current balance per product at each location
- Make a virtual environment
- macOS/Linux
python3 -m venv .venvsource .venv/bin/activate
- Windows (PowerShell)
py -3 -m venv .venv.venv\Scripts\Activate
- Install packages
pip install -r requirements.txt
- Create a
.envfile (you can copy/paste this)
FLASK_ENV=development
DATABASE_URL=sqlite:///inventory.db
SECRET_KEY=dev-secret
- Set up the database (first time only)
flask --app app db initflask --app app db migrate -m "init"flask --app app db upgrade
- (Optional) Add sample data
flask --app app seed
- Run the app
flask --app app run- Open
http://127.0.0.1:5000
- Inbound: leave
from_locationempty - Outbound: leave
to_locationempty - Transfer: set both
- Keep SQLite by default. To use MySQL/Postgres, change
DATABASE_URLin.envand install a driver:- MySQL:
pip install pymysql - Postgres:
pip install psycopg2-binary
- MySQL:
- Then run:
flask --app app db upgrade
app/
models.py # database tables
forms.py # page forms
views.py # routes/pages
templates/ # HTML templates
static/ # CSS
- Open the folder, select the
.venvinterpreter, and runflask --app app runin the terminal.
Repository description: "Simple Flask app to manage products, locations, and movements with a basic balance report. Easy setup with SQLite."
Project Demo Video: https://github.com/user-attachments/assets/5bfe7023-f9d3-4020-b178-b76d607429c9