Files
malabar/webnode/run.sh
2026-03-03 17:42:50 +08:00

20 lines
412 B
Bash
Executable File

#!/bin/bash
# Run the Node.js web server for the episode viewer
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Install dependencies if needed
if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
fi
echo "Starting Episode Web Viewer (Node.js)..."
echo "Open http://localhost:5000 in your browser"
echo "Press Ctrl+C to stop"
echo ""
npm start