From dc20f50fa22ffc0f3de57e23fb406beb8a9e908a Mon Sep 17 00:00:00 2001 From: jessikitty Date: Mon, 26 Jan 2026 21:55:09 +1100 Subject: [PATCH] Add core configuration --- backend/app/core/config.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 backend/app/core/config.py diff --git a/backend/app/core/config.py b/backend/app/core/config.py new file mode 100644 index 0000000..622172a --- /dev/null +++ b/backend/app/core/config.py @@ -0,0 +1,27 @@ +"""Application configuration.""" +from pydantic_settings import BaseSettings +from typing import List + +class Settings(BaseSettings): + """Application settings.""" + + APP_NAME: str = "Family Hub" + APP_VERSION: str = "0.1.0" + DEBUG: bool = True + + # Database + DATABASE_URL: str = "sqlite:///./family_hub.db" + + # Security + SECRET_KEY: str = "your-secret-key-change-this-in-production" + ALGORITHM: str = "HS256" + ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 + + # CORS + ALLOWED_ORIGINS: List[str] = ["http://localhost:5173", "http://localhost:3000"] + + class Config: + env_file = ".env" + case_sensitive = True + +settings = Settings()