This commit is contained in:
2025-09-14 22:09:39 +05:00
parent 8ad2bfbe59
commit 3c418a97b4
30 changed files with 3404 additions and 0 deletions

18
api/run_api.py Normal file
View File

@@ -0,0 +1,18 @@
"""
Скрипт для запуска API сервера
"""
import uvicorn
from api.config import config
if __name__ == "__main__":
print(f"Запуск {config.TITLE} v{config.VERSION}")
print(f"Документация будет доступна по адресу: http://{config.HOST}:{config.PORT}/docs")
uvicorn.run(
"api.main:app",
host=config.HOST,
port=config.PORT,
reload=config.RELOAD,
log_level=config.LOG_LEVEL.lower()
)