update to python fastpi

This commit is contained in:
Iliyan Angelov
2025-11-16 15:59:05 +02:00
parent 93d4c1df80
commit 98ccd5b6ff
4464 changed files with 773233 additions and 13740 deletions

23
Backend/run.py Normal file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""
Main entry point for the FastAPI server
"""
import uvicorn
import os
from dotenv import load_dotenv
load_dotenv()
if __name__ == "__main__":
port = int(os.getenv("PORT", 8000))
host = os.getenv("HOST", "0.0.0.0")
reload = os.getenv("NODE_ENV") == "development"
uvicorn.run(
"src.main:app",
host=host,
port=port,
reload=reload,
log_level="info"
)