feat: complete aihr mvp mobile workflow

This commit is contained in:
2026-07-03 16:43:37 +08:00
parent 0126b0c661
commit f869d66c90
46 changed files with 5879 additions and 219 deletions
+10 -3
View File
@@ -8,7 +8,7 @@ usage() {
cat <<'EOF'
Usage: ./scripts/dev.sh [start|stop|restart|status|--reset]
Starts MySQL, Redis, MinIO, Qdrant, backend and frontend.
Starts MySQL, Redis, MinIO, Qdrant, backend, admin frontend and mobile frontend.
start start local demo services
stop stop backend and frontend dev processes
restart stop backend and frontend, then start again
@@ -78,12 +78,14 @@ stop_port() {
stop_dev() {
stop_port 8080
stop_port 5173
stop_port 5174
}
status() {
docker compose -f docker-compose.dev.yml ps
lsof -nP -iTCP:8080 -sTCP:LISTEN || true
lsof -nP -iTCP:5173 -sTCP:LISTEN || true
lsof -nP -iTCP:5174 -sTCP:LISTEN || true
}
if [[ "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
@@ -125,6 +127,7 @@ cd "$ROOT_DIR"
ensure_docker
ensure_port_free 8080
ensure_port_free 5173
ensure_port_free 5174
if [[ "$RESET" == true ]]; then
./scripts/reset-dev-db.sh
@@ -140,10 +143,14 @@ PIDS+=("$!")
./scripts/dev-frontend.sh &
PIDS+=("$!")
./scripts/dev-mobile.sh &
PIDS+=("$!")
echo "Backend: http://127.0.0.1:8080/"
echo "Frontend: http://127.0.0.1:5173/"
echo "Admin: http://127.0.0.1:5173/"
echo "Mobile: http://127.0.0.1:5174/h5/user"
echo "Qdrant: http://127.0.0.1:6333/"
echo "Press Ctrl+C to stop backend and frontend."
echo "Press Ctrl+C to stop backend, admin frontend and mobile frontend."
while :; do
for pid in "${PIDS[@]}"; do