Rust (Axum) + Vue 3 + SQLite. Features: - Project CRUD REST API with proper error handling - Per-project agent loop (mpsc + broadcast channels) - LLM-driven plan generation and replan on user feedback - SSH command execution with status streaming - WebSocket real-time updates to frontend - Four-zone UI: requirement, plan (left), execution (right), comment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
659 B
Makefile
42 lines
659 B
Makefile
.PHONY: dev dev-backend dev-frontend build build-backend build-frontend clean deploy clippy lint docker-build
|
|
|
|
# 开发模式:同时启动前后端
|
|
dev:
|
|
@echo "Starting Tori dev mode..."
|
|
$(MAKE) dev-backend &
|
|
$(MAKE) dev-frontend &
|
|
wait
|
|
|
|
dev-backend:
|
|
cargo run
|
|
|
|
dev-frontend:
|
|
cd web && npm run dev -- --port 5173
|
|
|
|
# 构建
|
|
build: build-frontend build-backend
|
|
|
|
build-backend:
|
|
cargo build --release
|
|
|
|
build-frontend:
|
|
cd web && npm run build
|
|
|
|
# Docker
|
|
docker-build:
|
|
docker build -t tori:latest .
|
|
|
|
# 部署
|
|
deploy: docker-build
|
|
kubectl apply -f deploy/
|
|
|
|
# Lint
|
|
clippy:
|
|
cargo clippy
|
|
|
|
lint: clippy
|
|
|
|
clean:
|
|
cargo clean
|
|
rm -rf web/dist web/node_modules
|