-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
32 lines (24 loc) · 671 Bytes
/
Copy pathdev.sh
File metadata and controls
32 lines (24 loc) · 671 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
#!/bin/bash
# ShadowPay Development Script
# Runs both backend and frontend
echo "🚀 Starting ShadowPay Development Environment..."
# Kill previous processes
pkill -f "npm run dev" 2>/dev/null || true
# Start backend in background
echo "📡 Starting Backend (port 3001)..."
cd backend && npm run dev &
BACKEND_PID=$!
sleep 2
# Start frontend in background
echo "🎨 Starting Frontend (port 5173)..."
cd ../frontend && npm run dev &
FRONTEND_PID=$!
echo ""
echo "✅ ShadowPay is running!"
echo " Backend: http://localhost:3001"
echo " Frontend: http://localhost:5173"
echo ""
echo "Press Ctrl+C to stop all services"
echo ""
# Wait for both processes
wait