Add backend and frontend skeleton

This commit is contained in:
2025-11-26 14:47:36 +01:00
parent 1dc225dd77
commit 7ec9324997
37 changed files with 6973 additions and 119 deletions

View File

@@ -0,0 +1,23 @@
"""Environment configuration derived from environment variables."""
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
"""Application settings."""
service_name: str = "backend"
environment: str = "development"
database_url: str = (
"postgresql+psycopg://postgres:postgres@postgres:5432/avaaz"
)
model_config = SettingsConfigDict(env_prefix="", case_sensitive=False)
@lru_cache(maxsize=1)
def get_settings() -> Settings:
"""Return cached settings instance."""
return Settings()