-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_frontend.sh
More file actions
executable file
·85 lines (77 loc) · 2.48 KB
/
verify_frontend.sh
File metadata and controls
executable file
·85 lines (77 loc) · 2.48 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# Script to verify the frontend setup
echo "=== Reddit AI Curator Frontend Verification ==="
echo ""
echo "1. Checking frontend directory..."
if [ -d "frontend-new" ]; then
echo " ✓ frontend-new directory exists"
else
echo " ✗ frontend-new directory not found"
exit 1
fi
echo ""
echo "2. Checking built files..."
if [ -f "frontend-new/dist/index.html" ]; then
echo " ✓ index.html built"
else
echo " ✗ index.html not found (run: cd frontend-new && npm run build)"
fi
if [ -d "frontend-new/dist/assets" ]; then
echo " ✓ assets directory built"
else
echo " ✗ assets directory not found"
fi
echo ""
echo "3. Checking source files..."
for file in \
"frontend-new/src/App.jsx" \
"frontend-new/src/pages/SearchPage.jsx" \
"frontend-new/src/pages/DiscoveryPage.jsx" \
"frontend-new/src/pages/HistoryPage.jsx" \
"frontend-new/src/components/QueryBuilder.jsx" \
"frontend-new/src/components/AIQueryGenerator.jsx" \
"frontend-new/src/components/TournamentDisplay.jsx" \
"frontend-new/src/components/CascadeProgress.jsx" \
"frontend-new/src/components/ResultsList.jsx" \
"frontend-new/src/components/LiveLogs.jsx" \
"frontend-new/src/components/SubredditManager.jsx" \
"frontend-new/src/components/PostCard.jsx" \
"frontend-new/src/components/SavedQueries.jsx" \
"frontend-new/src/components/Header.jsx" \
"frontend-new/src/components/SearchFilters.jsx" \
"frontend-new/src/lib/api.js" \
"frontend-new/src/lib/utils.js" \
"frontend-new/src/hooks/useData.js" \
"frontend-new/vite.config.js" \
"frontend-new/tailwind.config.js" \
"frontend-new/package.json"; do
if [ -f "$file" ]; then
basename_file=$(basename "$file")
echo " ✓ $basename_file"
else
echo " ✗ $file not found"
fi
done
echo ""
echo "4. Backend routes added..."
if grep -q "@app.route(\"/modern/\")" app.py; then
echo " ✓ /modern/ route added"
else
echo " ✗ /modern/ route not found"
fi
if grep -q "@app.route(\"/modern/<path:filename>\")" app.py; then
echo " ✓ /modern/<path> route added"
else
echo " ✗ /modern/<path> route not found"
fi
echo ""
echo "=== Verification Complete ==="
echo ""
echo "To run the frontend:"
echo " Development: cd frontend-new && npm run dev"
echo " Production: cd frontend-new && npm run build"
echo ""
echo "To run the backend:"
echo " python app.py"
echo ""
echo "Access the new frontend at: http://localhost:5000/modern/"