bzl

self-hosted ephemeral community engine
Log | Files | Refs | README | LICENSE

INSTALL.sh (589B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 
      4 cd "$(dirname "$0")"
      5 
      6 echo "[Bzl] Installer (bash)"
      7 command -v node >/dev/null 2>&1 || { echo "Missing node (Node.js 18+ required)"; exit 1; }
      8 command -v npm >/dev/null 2>&1 || { echo "Missing npm"; exit 1; }
      9 
     10 echo "[Bzl] Node: $(node -v)"
     11 echo "[Bzl] npm:  $(npm -v)"
     12 
     13 if [ ! -d "./node_modules" ]; then
     14   echo "[Bzl] Installing dependencies..."
     15   npm install
     16 fi
     17 
     18 echo "[Bzl] Running init wizard..."
     19 npm run init
     20 
     21 echo ""
     22 echo "[Bzl] Start now with:"
     23 echo "  npm start"
     24 echo ""
     25 echo "Or supervised (auto-restart):"
     26 echo "  npm run start:supervised"