#!/usr/bin/env bash # ------------------------------------------------------------ # OURWORLD Web – Development server ( www_threefold_2025 ) # ------------------------------------------------------------ set -e echo "πŸš€ Starting OURWORLD Web Development Server…" echo "================================================" # ---------- 1. Make sure deps are installed ---------- if [ ! -d "node_modules" ]; then echo "❌ node_modules missing – run './install.sh' first." exit 1 fi # ---------- 2. Show helpful URLs ---------- echo "🌐 Local URL : http://localhost:5173" echo "🌐 Network URL : http://0.0.0.0:5173" echo "" # ---------- 3. Tips ---------- cat <<'EOF' πŸ’‘ Tips while developing: β€’ The server automatically reloads on file changes. β€’ Press Ctrl+C to stop the server. β€’ Main entry points you’ll edit most often: - src/pages/Home.tsx β†’ home page content - src/components/ β†’ reusable components - src/styles/tailwind.css β†’ global styles - public/images/ β†’ public images EOF echo "" # ---------- 4. Start Vite (pnpm) ---------- pnpm run dev --host # --host enables the network URL above