feat: add base FastAPI project structure with static frontend and API v1
This commit is contained in:
19
app/__main__.py
Normal file
19
app/__main__.py
Normal 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(),
|
||||
)
|
||||
Reference in New Issue
Block a user