Automated Action 12b80aca5b Implement and optimize Calculator API with FastAPI and SQLAlchemy
- Fixed Pydantic configuration using ConfigDict for latest Pydantic version
- Fixed import order in alembic/env.py for proper module imports
- Applied code formatting with Ruff
- Optimized database connection settings
- Ensured proper error handling for API endpoints

generated with BackendIM... (backend.im)
2025-05-13 23:22:34 +00:00

15 lines
390 B
Python

import uvicorn
from fastapi import FastAPI
from app.api.router import router as api_router
from app.core.config import settings
app = FastAPI(
title=settings.PROJECT_NAME,
openapi_url=f"{settings.API_V1_STR}/openapi.json",
)
app.include_router(api_router, prefix=settings.API_V1_STR)
if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)