Automated Action 5e499461d7 Create simple FastAPI Todo application
- Set up project structure with FastAPI
- Create Todo model with SQLAlchemy
- Set up Alembic for database migrations
- Implement CRUD operations for todos
- Add health endpoint
- Update README with setup and usage instructions

generated with BackendIM... (backend.im)
2025-05-13 05:00:15 +00:00

15 lines
389 B
Python

from fastapi import FastAPI
from app.api.routes import router as api_router
from app.core.config import settings
app = FastAPI(title=settings.PROJECT_NAME)
app.include_router(api_router)
@app.get("/health", tags=["health"])
def health_check():
return {"status": "ok"}
if __name__ == "__main__":
import uvicorn
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)