www_engage_os/install.sh
2025-08-14 12:29:57 +02:00

38 lines
1.3 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# ------------------------------------------------------------
# OURWORLD Web Installation script ( www_threefold_2025 )
# ------------------------------------------------------------
set -e # abort on any error
echo "🚀 Installing OURWORLD Web (www_threefold_2025)…"
echo "================================================"
# ---------- 1. Verify Node.js ----------
if ! command -v node &>/dev/null; then
echo "❌ Node.js is not installed. Install it first (https://nodejs.org/)."
exit 1
fi
# ---------- 2. Verify / install pnpm ----------
if ! command -v pnpm &>/dev/null; then
echo "📦 pnpm not found installing globally via npm…"
npm install -g pnpm
fi
echo "✅ Node version : $(node --version)"
echo "✅ pnpm version : $(pnpm --version)"
echo ""
# ---------- 3. Install project deps ----------
echo "📦 Installing project dependencies (lockfile will be honoured)…"
pnpm install
echo ""
echo "✅ Installation finished!"
echo "------------------------------------------------"
echo "Next steps:"
echo " 1⃣ Run './start.sh' start the dev server"
echo " 2⃣ Open http://localhost:5173 in your browser"
echo " 3⃣ Edit files under ./src/ changes reload automatically"
echo "------------------------------------------------"