
- Set up project structure with FastAPI, SQLAlchemy, and Alembic - Create Todo model and database operations - Implement CRUD API endpoints for Todo items - Configure database migrations - Add comprehensive documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
279 B
Python
12 lines
279 B
Python
import os
|
|
from pydantic import BaseSettings
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
class Settings(BaseSettings):
|
|
APP_NAME: str = "Todo API"
|
|
DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./todo.db")
|
|
API_V1_STR: str = "/api/v1"
|
|
|
|
settings = Settings() |