-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
52 lines (42 loc) · 1.46 KB
/
Copy pathstart.sh
File metadata and controls
52 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
echo "╔════════════════════════════════════════════╗"
echo "║ SwiftEx Courier System - Quick Start ║"
echo "╚════════════════════════════════════════════╝"
echo ""
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed!"
echo "Please install Node.js from https://nodejs.org/"
exit 1
fi
echo "✓ Node.js found: $(node --version)"
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed!"
exit 1
fi
echo "✓ npm found: $(npm --version)"
echo ""
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
echo ""
fi
if [ ! -d "data" ]; then
echo "❌ Data directory not found!"
exit 1
fi
echo "✓ Data directory found"
echo ""
echo "🚀 Starting SwiftEx Courier System..."
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " Access the application at:"
echo " http://localhost:3000"
echo ""
echo " Default Login:"
echo " Username: admin"
echo " Password: admin123"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
npm start