
- 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)
13 lines
381 B
Python
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") |