Automated Action 0186fc8e70 Create movie database backend with FastAPI and SQLite
This commit implements a simple movie database backend inspired by IMDb. It includes:
- API endpoints for movies, actors, directors and genres
- SQLAlchemy models with relationships
- Alembic migrations
- Pydantic schemas for request/response validation
- Search and filtering functionality
- Health check endpoint
- Complete documentation
2025-05-19 20:28:07 +00:00

25 lines
548 B
Python

from pydantic_settings import BaseSettings
from typing import List
class Settings(BaseSettings):
# Project settings
PROJECT_NAME: str = "Movie Database API"
PROJECT_DESCRIPTION: str = "A simple backend for a movie website inspired by IMDb"
VERSION: str = "0.1.0"
DEBUG: bool = True
# Server settings
HOST: str = "0.0.0.0"
PORT: int = 8000
# CORS settings
CORS_ORIGINS: List[str] = ["*"]
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings()