init db and docker

This commit is contained in:
Harivansh Rathi 2025-12-30 16:15:46 +05:30
commit 1a980a7a70
5 changed files with 178 additions and 0 deletions

30
pyproject.toml Normal file
View file

@ -0,0 +1,30 @@
[project]
name = "url-shortner"
version = "0.1.0"
description = "Distributed URL shortening service for learning system design"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"asyncpg>=0.29.0",
"redis>=5.0.0",
"pydantic>=2.5.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"httpx>=0.26.0",
"ruff>=0.1.0",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
asyncio_mode = "auto"