V0.2.0
All checks were successful
Build Docker Image / build (push) Successful in 12m39s

This commit is contained in:
2025-02-13 17:46:15 -08:00
parent 9544b0415c
commit b7e89d9c22
17 changed files with 455 additions and 24 deletions

View File

@@ -4,16 +4,21 @@ from app.config import Config
from app.database import engine
from app.models import Base
from app.views import bp
from app.migrations import run_migrations
def create_app():
app = Flask(__name__)
def create_app(test_config=None):
app = Flask(__name__, instance_relative_config=True)
app.config.from_object(Config)
# Ensure database tables exist
# Create database tables if they don't exist
Base.metadata.create_all(engine)
# Register blueprints
app.register_blueprint(bp)
# Run migrations after tables are created
with app.app_context():
run_migrations(app)
return app