forked from bhancockio/adk-fullstack-deploy-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 842 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
install:
@command -v uv >/dev/null 2>&1 || { echo "uv is not installed. Installing uv..."; curl -LsSf https://astral.sh/uv/0.6.12/install.sh | sh; source $HOME/.local/bin/env; }
uv sync && npm --prefix nextjs install
dev:
make dev-backend & make dev-frontend
dev-backend:
uv run adk api_server app --allow_origins="*"
dev-frontend:
npm --prefix nextjs run dev
adk-web:
uv run adk web --port 8501
lint:
uv run codespell
uv run ruff check . --diff
uv run ruff format . --check --diff
uv run mypy .
# Deploy the agent remotely
deploy-adk:
# Export dependencies to requirements file using uv export.
uv export --no-hashes --no-header --no-dev --no-emit-project --no-annotate > .requirements.txt 2>/dev/null || \
uv export --no-hashes --no-header --no-dev --no-emit-project > .requirements.txt && uv run app/agent_engine_app.py