#!/bin/bash echo "🚀 DOCX Template Server wird gestartet..." echo "" # Prüfe ob Node.js installiert ist if ! command -v node &> /dev/null; then echo "❌ Node.js ist nicht installiert. Bitte installieren Sie Node.js zuerst." exit 1 fi # Prüfe ob npm installiert ist if ! command -v npm &> /dev/null; then echo "❌ npm ist nicht installiert. Bitte installieren Sie npm zuerst." exit 1 fi # Wechsle ins Projektverzeichnis cd /home/OfficeServerJS # Prüfe ob node_modules existiert if [ ! -d "node_modules" ]; then echo "📦 Installiere Abhängigkeiten..." npm install fi # Starte den Server echo "🌟 Starte den DOCX Template Server..." echo "" echo "📍 Web-Oberfläche: http://localhost:80" echo "📁 Templates: http://localhost:80/templates/" echo "📁 Dokumente: http://localhost:80/documents/" echo "" echo "💡 Drücken Sie Ctrl+C zum Beenden" echo "" node server.js