Electronics Catalog: API, MCP server, frontend and deployment
Verified catalogue of mobiles and laptops sold in India, collected from real retail listings (FastAPI backend, React frontend, Postgres/pgvector). - REST API under /api/elec (read-only catalogue; admin endpoints need login) - MCP server (FastMCP) at /mcp/ with list_categories, search_products, get_product and price_history tools - Real ratings and reviews read from product pages and search results - Production Dockerfile (requirements-api.txt, no PyTorch) and .env.production.example; remote database only via an explicit ELEC_ALLOW_REMOTE_DB host/name allowlist - docs/API.md: endpoint and MCP reference with live examples Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
14
backend/requirements-dev.txt
Normal file
14
backend/requirements-dev.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# Test-only dependencies, kept out of requirements.txt so the Docker image does
|
||||
# not ship them - the container has no tests/ directory to run anyway (the
|
||||
# Dockerfile copies app/, cli/, scripts/, data/ and serve.py, nothing else).
|
||||
#
|
||||
# For development, install both files:
|
||||
# pip install -r requirements.txt -r requirements-dev.txt
|
||||
|
||||
pytest>=8.3.3
|
||||
|
||||
# Starlette's TestClient deprecates the httpx 0.x backend and emits a
|
||||
# StarletteDeprecationWarning without this. pytest.ini turns warnings into
|
||||
# errors, so it is a hard requirement of the suite, not a nicety. Test-only:
|
||||
# the application itself uses the `httpx` pinned in requirements.txt.
|
||||
httpx2>=2.10.0
|
||||
Reference in New Issue
Block a user