Files
deer-flow/backend/Makefile
DanielWalnut 7284eb15f1 feat: add gateway module with FastAPI server (#5)
* chore: add .claude/ to .gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add gateway module with FastAPI server

- Add new gateway module with FastAPI app for API routing
- Add gateway and serve commands to Makefile
- Add fastapi, httpx, uvicorn, sse-starlette dependencies
- Fix model config retrieval in lead_agent (support both model_name and model)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 13:22:26 +08:00

21 lines
418 B
Makefile

install:
uv sync
dev:
uv run langgraph dev --no-browser --allow-blocking
gateway:
uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000 --reload
serve:
@trap 'kill 0' EXIT; \
uv run langgraph dev --no-browser --allow-blocking & \
sleep 3 && uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000 --reload & \
wait
lint:
uvx ruff check .
format:
uvx ruff check . --fix && uvx ruff format .