Automated Action f55cad6274 Create Todo application with FastAPI
- Set up project structure with FastAPI
- Implement Todo model and database connection
- Set up Alembic for database migrations
- Create CRUD API endpoints for Todo management
- Add health endpoint for application monitoring
- Update README with project documentation

generated with BackendIM... (backend.im)
2025-05-14 01:20:30 +00:00

13 lines
381 B
Python

from fastapi import FastAPI
from app.api.endpoints import todos, health
from app.db.session import engine
from app.db.base import Base
# Create database tables
Base.metadata.create_all(bind=engine)
app = FastAPI(title="Todo Application", description="A simple todo application")
# Include routers
app.include_router(health.router)
app.include_router(todos.router, prefix="/api")