feat: fastapi-backend mit healthcheck und alembic-basis

- GET /api/health prüft die Datenbankverbindung
- SQLite im WAL-Modus unter /data/app.db
- Auslieferung des gebauten Frontends mit SPA-Fallback
- leere Basis-Migration, Tests mit pytest

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dbildhauerandClaude Opus 5.5 committed 2026-10-25 11:04:33 +01:00
1 parent ff666175d0
commit 8e6ef05304
15 files changed
+414

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
[project]
name = "lan-clipboard"
version = "0.1.0"
description = "Self-hosted web clipboard for the private network"
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"sqlalchemy>=2.0.36",
"alembic>=1.14",
"pydantic>=2.10",
"pydantic-settings>=2.6",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3",
"httpx>=0.28",
"ruff>=0.8",
]
[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["app*"]
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "S", "ASYNC"]
[tool.ruff.lint.isort]
known-first-party = ["app"]
known-third-party = ["alembic"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.pytest.ini_options]
testpaths = ["tests"]