Automated Action b00b44023a Add FastAPI REST API with SQLite database
- Set up project structure
- Add database models and SQLAlchemy setup
- Configure Alembic for migrations
- Create API endpoints for items
- Add health check endpoint
- Update documentation

generated with BackendIM... (backend.im)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-15 22:33:58 +00:00

26 lines
591 B
Python

from pydantic_settings import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
API_V1_STR: str = "/api/v1"
PROJECT_NAME: str = "Generic REST API Service"
DESCRIPTION: str = "A generic REST API service built with FastAPI and SQLite"
VERSION: str = "0.1.0"
# CORS
BACKEND_CORS_ORIGINS: list[str] = ["*"]
# Server settings
HOST: str = "0.0.0.0"
PORT: int = 8000
RELOAD: bool = True
# Database
DB_DIR = Path("/app") / "storage" / "db"
class Config:
case_sensitive = True
settings = Settings()