""" Flask Application Entry Point This script creates and runs the Flask application using the application factory pattern. Use this for development and testing purposes. """ import os from app import create_app # Create application instance app = create_app() if __name__ == '__main__': # Development server configuration debug_mode = os.getenv('FLASK_DEBUG', 'True').lower() == 'true' port = int(os.getenv('FLASK_PORT', 5000)) host = os.getenv('FLASK_HOST', '127.0.0.1') print(f"🚀 Starting Personal Finance API on {host}:{port}") print(f"📊 Debug mode: {debug_mode}") print(f"🔧 Environment: {os.getenv('FLASK_ENV', 'development')}") app.run( host=host, port=port, debug=debug_mode )