-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·54 lines (45 loc) · 1.33 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.33 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
#!/bin/bash
# Setup script for SupportBro Monorepo
echo "🔧 Setting up SupportBro Monorepo..."
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed!"
echo "Please install Node.js from https://nodejs.org/ or use nvm:"
echo ""
echo " curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash"
echo " nvm install --lts"
echo ""
exit 1
fi
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed!"
echo "Please install npm (usually comes with Node.js)"
exit 1
fi
echo "✅ Node.js version: $(node --version)"
echo "✅ npm version: $(npm --version)"
echo ""
# Install root dependencies
echo "📦 Installing root dependencies..."
npm install
# Install backend dependencies
echo "📦 Installing backend dependencies..."
cd support-ticket-system
npm install
cd ..
# Install frontend dependencies
echo "📦 Installing frontend dependencies..."
cd support-frontend
npm install
cd ..
echo ""
echo "✅ Setup complete!"
echo ""
echo "🎯 You can now run:"
echo " npm run dev - Start both frontend and backend"
echo " ./dev.sh - Same as above (using bash script)"
echo " npm run dev:backend - Start only backend"
echo " npm run dev:frontend - Start only frontend"
echo ""