-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·38 lines (31 loc) · 992 Bytes
/
Copy pathdev.sh
File metadata and controls
executable file
·38 lines (31 loc) · 992 Bytes
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
#!/bin/bash
# SupportBro Development Script
# This script starts both frontend and backend servers concurrently
echo "🚀 Starting SupportBro in Development Mode..."
echo ""
# Check if node_modules exists in root
if [ ! -d "node_modules" ]; then
echo "📦 Installing root dependencies..."
npm install
fi
# Check if backend dependencies are installed
if [ ! -d "support-ticket-system/node_modules" ]; then
echo "📦 Installing backend dependencies..."
cd support-ticket-system && npm install && cd ..
fi
# Check if frontend dependencies are installed
if [ ! -d "support-frontend/node_modules" ]; then
echo "📦 Installing frontend dependencies..."
cd support-frontend && npm install && cd ..
fi
echo ""
echo "✅ All dependencies installed!"
echo ""
echo "🎯 Starting servers..."
echo " - Backend: http://localhost:5000"
echo " - Frontend: http://localhost:3000"
echo ""
echo "Press Ctrl+C to stop both servers"
echo ""
# Run both servers
npm run dev