
- Implement Todo CRUD API endpoints - Set up SQLite database with SQLAlchemy - Create Todo model and schemas - Configure Alembic migrations - Add comprehensive documentation 🤖 Generated with and Co-Authored by [BackendIM](https://backend.im)
19 lines
416 B
Python
19 lines
416 B
Python
from pathlib import Path
|
|
from typing import Any, Dict, Optional
|
|
|
|
from pydantic import BaseSettings, validator
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
PROJECT_NAME: str = "Todo Backend Service"
|
|
API_V1_STR: str = "/api/v1"
|
|
|
|
# Base directory
|
|
BASE_DIR: Path = Path(__file__).resolve().parent.parent.parent
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
case_sensitive = True
|
|
|
|
|
|
settings = Settings() |