-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (61 loc) · 2.2 KB
/
Makefile
File metadata and controls
77 lines (61 loc) · 2.2 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.PHONY: help install install-pip install-frontend dev-up dev-down migrate upgrade downgrade run-backend run-celery run-frontend run-agent test clean
help:
@echo "Available commands:"
@echo " make install - Install Python dependencies using uv (installs uv if needed)"
@echo " make install-pip - Install Python dependencies using pip (fallback)"
@echo " make install-frontend - Install frontend dependencies"
@echo " make dev-up - Start PostgreSQL and Redis containers"
@echo " make dev-down - Stop containers"
@echo " make migrate - Create new Alembic migration"
@echo " make upgrade - Run database migrations"
@echo " make downgrade - Rollback last migration"
@echo " make run-backend - Start FastAPI backend server"
@echo " make run-celery - Start Celery worker"
@echo " make run-frontend - Start Vite frontend dev server"
@echo " make run-agent - Run Agno agent example"
@echo " make test - Run tests"
@echo " make clean - Clean generated files"
install:
@if ! command -v uv > /dev/null 2>&1; then \
echo "📦 Installing uv..."; \
if [ "$$(uname -s)" = "Linux" ] || [ "$$(uname -s)" = "Darwin" ]; then \
curl -LsSf https://astral.sh/uv/install.sh | sh; \
export PATH="$$HOME/.cargo/bin:$$PATH"; \
else \
echo "Please install uv manually: https://github.com/astral-sh/uv#installation"; \
exit 1; \
fi; \
fi
@uv pip install -e .
install-pip:
pip install -e .
install-frontend:
cd frontend && npm install
dev-up:
docker-compose up -d
@echo "Waiting for services to be ready..."
@sleep 5
dev-down:
docker-compose down
migrate:
alembic revision --autogenerate -m "$(msg)"
upgrade:
alembic upgrade head
downgrade:
alembic downgrade -1
run-backend:
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
run-celery:
celery -A app.tasks worker --loglevel=info
run-frontend:
cd frontend && npm run dev
run-agent:
python agents/agno_app.py
test:
pytest
clean:
rm -rf __pycache__ */__pycache__ */*/__pycache__
rm -rf *.egg-info
rm -rf uploads/* artifacts/* generated/* previews/* bundles/*
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name "*.pyc" -delete