diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc new file mode 100644 index 0000000..af4fb46 Binary files /dev/null and b/__pycache__/app.cpython-312.pyc differ diff --git a/__pycache__/config.cpython-312.pyc b/__pycache__/config.cpython-312.pyc index c9a6f11..5da3bc4 100644 Binary files a/__pycache__/config.cpython-312.pyc and b/__pycache__/config.cpython-312.pyc differ diff --git a/__pycache__/models.cpython-312.pyc b/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..e31ef6e Binary files /dev/null and b/__pycache__/models.cpython-312.pyc differ diff --git a/__pycache__/routes.cpython-312.pyc b/__pycache__/routes.cpython-312.pyc new file mode 100644 index 0000000..92c94bd Binary files /dev/null and b/__pycache__/routes.cpython-312.pyc differ diff --git a/app.db b/app.db new file mode 100644 index 0000000..e69de29 diff --git a/app.py b/app.py index 9b202fb..30044ad 100644 --- a/app.py +++ b/app.py @@ -57,11 +57,7 @@ def create_app(test_config=None): Config.KEY_PATH, ) # Run the dev server with SSL for local testing - if not app.testing: - # Only start server if called directly - @app.before_first_request - def _start_server(): - pass # placeholder for any startup hooks + # Placeholder for startup hooks return app diff --git a/config.py b/config.py index 28e898c..1c8d6fd 100644 --- a/config.py +++ b/config.py @@ -5,7 +5,7 @@ BASE_DIR = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get("SECRET_KEY", "dev-secret-key") - SQLALCHEMY_DATABASE_URI = "sqlite://" + os.path.join(BASE_DIR, "app.db") + SQLALCHEMY_DATABASE_URI = f"sqlite:///{os.path.join(BASE_DIR, 'app.db')}" SQLALCHEMY_TRACK_MODIFICATIONS = False UPLOAD_FOLDER = os.path.join(BASE_DIR, "uploads") MAX_CONTENT_LENGTH = 16 * 1024 * 1024 # 16 MB max upload diff --git a/package.json b/package.json new file mode 100644 index 0000000..2a8c269 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "EP_inspection_tool_proto", + "version": "0.1.0", + "dependencies": {} +} diff --git a/routes.py b/routes.py new file mode 100644 index 0000000..759b7f5 --- /dev/null +++ b/routes.py @@ -0,0 +1,17 @@ +# Minimal routes for the application + +from flask import Blueprint, render_template + +# Auth blueprint +auth_bp = Blueprint('auth', __name__, url_prefix='/auth') + +@auth_bp.route('/login') +def login(): + return 'Login page' + +# Main blueprint +main_bp = Blueprint('main', __name__) + +@main_bp.route('/') +def index(): + return 'Hello, World!' diff --git a/var/app-instance/app.db b/var/app-instance/app.db new file mode 100644 index 0000000..e69de29