-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify-setup.sh
More file actions
executable file
·65 lines (54 loc) · 1.47 KB
/
verify-setup.sh
File metadata and controls
executable file
·65 lines (54 loc) · 1.47 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
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# DevContainer verification script
echo "🔍 Verifying DevContainer Setup"
echo "================================"
# Check Python
echo -n "🐍 Python: "
python --version || echo "❌ Not found"
# Check Node.js
echo -n "⚛️ Node.js: "
node --version || echo "❌ Not found"
# Check NPM
echo -n "📦 NPM: "
npm --version || echo "❌ Not found"
# Check Django
echo -n "🦄 Django: "
python -c "import django; print(django.VERSION)" 2>/dev/null || echo "❌ Not available"
# Check database connection
echo -n "🗄️ Database: "
if [ -f "/workspace/backend/db.sqlite3" ]; then
echo "✅ SQLite Ready"
else
echo "❌ Not ready"
fi
# Check Redis connection
echo -n "📦 Redis: "
if redis-cli ping 2>/dev/null; then
echo "✅ Connected"
else
echo "❌ Not ready"
fi
# Check project structure
echo -n "📁 Project structure: "
if [ -d "backend" ] && [ -d "frontend" ] && [ -f "docker-compose.yml" ]; then
echo "✅ Complete"
else
echo "❌ Missing directories"
fi
# Check helper script
echo -n "🛠️ Helper script: "
if [ -x "dev-commands.sh" ]; then
echo "✅ Available"
else
echo "❌ Not found"
fi
echo ""
echo "📋 Available commands:"
if [ -x "dev-commands.sh" ]; then
./dev-commands.sh status 2>/dev/null || echo " (Run './dev-commands.sh' without arguments to see help)"
else
echo " cd backend && python manage.py runserver 0.0.0.0:8000"
echo " cd frontend && npm start"
fi
echo ""
echo "✅ Setup verification complete!"