-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·56 lines (49 loc) · 1.76 KB
/
Copy pathquickstart.sh
File metadata and controls
executable file
·56 lines (49 loc) · 1.76 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
#!/usr/bin/env bash
# ============================================================================
# AI-Factory — reproducible quickstart (clone → one command → running demo)
# ============================================================================
# Usage:
# ./scripts/quickstart.sh # build + run + landing demo idea
# ./scripts/quickstart.sh --no-build # reuse existing image
# ./scripts/quickstart.sh "Your product idea" # full_software profile
#
# After start, open Admin → Pipeline. Sample output without running anything:
# docs/sample-output/build-replay-spliteasy.json
# ============================================================================
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
BUILD=1
IDEA=""
PROFILE="marketing_landing"
while [[ $# -gt 0 ]]; do
case "$1" in
--no-build) BUILD=0; shift ;;
--full-stack|--full) PROFILE="full_software"; shift ;;
--landing) PROFILE="marketing_landing"; shift ;;
-h|--help)
sed -n '1,20p' "$0" | tail -n +2
exit 0
;;
*) IDEA="$1"; PROFILE="full_software"; shift ;;
esac
done
if [[ "$BUILD" -eq 1 ]]; then
echo "[quickstart] Building Docker image (first run may take several minutes)…"
./run.sh
else
./run.sh --no-build
fi
DEMO_ARGS=(--no-open)
if [[ "$PROFILE" == "marketing_landing" ]]; then
DEMO_ARGS+=(--landing)
fi
if [[ -n "$IDEA" ]]; then
DEMO_ARGS+=("$IDEA")
fi
echo "[quickstart] Enqueueing demo product (profile=${PROFILE})…"
./demo.sh "${DEMO_ARGS[@]}"
echo ""
echo "[quickstart] Done. Watch progress in Admin → Pipeline."
echo " Sample build replay (no Docker): docs/sample-output/build-replay-spliteasy.json"
echo " Public replay API shape: GET /api/public/build/{product_id}"