Initial commit: Flask calorie counter app setup

Add base Flask application with user authentication, SQLAlchemy models for users, units, and food items, admin blueprint, and basic templates. Includes database migration setup, login form, and seed script for initial user creation.
This commit is contained in:
2025-06-26 14:19:09 +02:00
parent b9f2c420ef
commit b498f3693a
19 changed files with 531 additions and 0 deletions

7
seed.py Normal file
View File

@@ -0,0 +1,7 @@
from application import db, app
from models import User
with app.app_context():
User.query.delete()
db.session.add(User("admin", "admin"))
db.session.commit()