Automated Action 7e35149610 Create simple todo application with FastAPI and SQLite
- Set up FastAPI project structure with proper organization
- Create Todo model with SQLAlchemy ORM
- Set up Alembic for database migrations
- Create CRUD operations and API endpoints for todos
- Add health check endpoint
- Update README with comprehensive documentation

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

13 lines
380 B
Python

from pathlib import Path
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
PROJECT_NAME: str = "SimpleTodoApp"
API_V1_STR: str = "/api/v1"
# Database settings
DB_DIR = Path("/app") / "storage" / "db"
DB_DIR.mkdir(parents=True, exist_ok=True)
SQLALCHEMY_DATABASE_URL: str = f"sqlite:///{DB_DIR}/db.sqlite"
settings = Settings()