-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.03 KB
/
Makefile
File metadata and controls
54 lines (41 loc) · 1.03 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
.PHONY: dev backend frontend install test clean docker-up docker-down
# Development
dev: backend frontend
backend:
cd backend && uvicorn agent_trace.main:app --reload --port 8000
frontend:
cd frontend && npm run dev
# Installation
install:
cd backend && pip install -e ".[dev]"
cd sdk && pip install -e ".[dev]"
cd frontend && npm install
# Testing
test:
cd backend && pytest
cd sdk && pytest
test-unit:
cd backend && pytest tests/unit/ -v
test-integration:
cd backend && pytest tests/integration/ -v
# Docker
docker-up:
docker-compose up -d
docker-down:
docker-compose down
docker-logs:
docker-compose logs -f
docker-build:
docker-compose build
# Cleanup
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
rm -rf frontend/node_modules frontend/dist
rm -rf data/*.db
# Full stack
all: install docker-up
@echo "Services started:"
@echo " Backend: http://localhost:8000"
@echo " Frontend: http://localhost:3000"
@echo " API Docs: http://localhost:8000/docs"