📚 Improved backend configuration and added test file 🎉
This commit is contained in:
@@ -40,7 +40,15 @@
|
|||||||
"Bash(node --version)",
|
"Bash(node --version)",
|
||||||
"Bash(npm --version)",
|
"Bash(npm --version)",
|
||||||
"Bash(python:*)",
|
"Bash(python:*)",
|
||||||
"Bash(pip3 install:*)"
|
"Bash(pip3 install:*)",
|
||||||
|
"Bash(pip install:*)",
|
||||||
|
"Bash(apt list:*)",
|
||||||
|
"Bash(cat:*)",
|
||||||
|
"Bash(sudo apt:*)",
|
||||||
|
"Bash(sudo apt list:*)",
|
||||||
|
"Bash(npm install)",
|
||||||
|
"Bash(npm run build:css:*)",
|
||||||
|
"Bash(timeout:*)"
|
||||||
],
|
],
|
||||||
"deny": []
|
"deny": []
|
||||||
}
|
}
|
||||||
|
2
backend/static/css/tailwind.min.css
vendored
2
backend/static/css/tailwind.min.css
vendored
File diff suppressed because one or more lines are too long
31
backend/test_flask_minimal.py
Normal file
31
backend/test_flask_minimal.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Minimaler Flask-Test für Grundfunktionalität
|
||||||
|
Nur zum Testen der grundlegenden Flask-Installation
|
||||||
|
"""
|
||||||
|
|
||||||
|
from flask import Flask, jsonify
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def hello():
|
||||||
|
return jsonify({
|
||||||
|
"status": "ok",
|
||||||
|
"message": "Flask läuft",
|
||||||
|
"python_version": sys.version,
|
||||||
|
"flask_version": "3.1.1",
|
||||||
|
"working_directory": os.getcwd()
|
||||||
|
})
|
||||||
|
|
||||||
|
@app.route('/health')
|
||||||
|
def health():
|
||||||
|
return jsonify({"status": "healthy", "service": "MYP Flask Test"})
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print("🚀 Starte minimalen Flask-Test...")
|
||||||
|
print("📍 URL: http://localhost:5000")
|
||||||
|
print("🔍 Health-Check: http://localhost:5000/health")
|
||||||
|
app.run(host='0.0.0.0', port=5000, debug=True)
|
Reference in New Issue
Block a user