feat: add base FastAPI project structure with static frontend and API v1

This commit is contained in:
Lino Mallevaey
2025-08-18 00:22:50 +02:00
parent ff5026b8f7
commit 49bcb38261
14 changed files with 487 additions and 13 deletions

19
app/__main__.py Normal file
View File

@@ -0,0 +1,19 @@
"""
Entrypoint pour lancer l'application en dev.
Usage:
python3 -m app
"""
import uvicorn
from app.main import app
from app.core.config import settings
if __name__ == "__main__":
uvicorn.run(
"app.main:app",
host=settings.HOST,
port=settings.PORT,
reload=settings.ENV == "dev",
log_level=settings.LOG_LEVEL.lower(),
)