Initial scaffold: FastAPI micro-service with Docker, SQLite, tests

This commit is contained in:
founder
2026-06-05 02:45:49 +02:00
commit 350143ceb4
16 changed files with 460 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
"""Application configuration — env-driven, zero secrets hardcoded."""
import os
class Settings:
APP_NAME: str = "micro-api"
VERSION: str = "0.1.0"
DEBUG: bool = os.getenv("DEBUG", "false").lower() == "true"
DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///data/app.db")
HOST: str = os.getenv("HOST", "0.0.0.0")
PORT: int = int(os.getenv("PORT", "8000"))
settings = Settings()