-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (22 loc) · 690 Bytes
/
main.py
File metadata and controls
27 lines (22 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
"""
Layover Legend System - Main Entry Point
Start the FastAPI server
Author: Said Lfagrouche
"""
import uvicorn
from src.config.settings import settings
def main():
"""Start the Layover Legend API server"""
print("🚀 Starting Layover Legend API server...")
print(f"📍 Server will run on: http://{settings.API_HOST}:{settings.API_PORT}")
print(f"📚 API Documentation: http://{settings.API_HOST}:{settings.API_PORT}/docs")
uvicorn.run(
"src.api.main:app",
host=settings.API_HOST,
port=settings.API_PORT,
reload=settings.API_RELOAD,
log_level="info"
)
if __name__ == "__main__":
main()