19 lines
611 B
Bash
Executable File
19 lines
611 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "[setup] Ensuring ./data/uploads exists..."
|
|
mkdir -p ./data/uploads
|
|
|
|
echo "[setup] Installing root dependencies..."
|
|
npm ci --no-audit --no-fund || npm install --no-audit --no-fund
|
|
|
|
echo "[setup] Rebuilding better-sqlite3 native binding (guarantees DB drivers work)"
|
|
npm rebuild better-sqlite3 --build-from-source || npm rebuild better-sqlite3
|
|
|
|
echo "[setup] Building Angular frontend..."
|
|
npm --workspace frontend run build
|
|
|
|
echo "[setup] Building NestJS backend..."
|
|
npm --workspace backend run build
|
|
|
|
echo "[setup] Done. Start with: npm start (dev mode: npm run dev)" |