mirror of
https://git.victorphan.net/basketballcantho/zalo-monitor.git
synced 2026-08-05 06:13:10 +07:00
22 lines
448 B
Bash
Executable File
22 lines
448 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Zalo Monitor Run Script
|
|
|
|
echo "🚀 Starting Zalo Monitor & Reporter..."
|
|
|
|
# Check if node_modules exists
|
|
if [ ! -d "node_modules" ]; then
|
|
echo "📦 Dependencies not found. Installing..."
|
|
npm install
|
|
fi
|
|
|
|
# Check if data directory exists
|
|
if [ ! -d "data" ]; then
|
|
echo "📁 Creating data directory..."
|
|
mkdir -p data
|
|
fi
|
|
|
|
# Run the development server
|
|
echo "🌐 Launching dashboard at http://localhost:3000"
|
|
npm run dev
|