-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
39 lines (31 loc) · 845 Bytes
/
setup.sh
File metadata and controls
39 lines (31 loc) · 845 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
set -e
echo "🚀 Setting up Driver Tracker..."
echo "📦 Setting up server dependencies..."
cd server
if command -v uv &> /dev/null; then
uv sync
echo "✅ Server dependencies installed"
else
echo "❌ Error: uv is not installed. Please install it from https://github.com/astral-sh/uv"
exit 1
fi
echo "📦 Running server migrations..."
uv run python manage.py migrate
echo "📦 Setting up client dependencies..."
cd ../client
if command -v pnpm &> /dev/null; then
pnpm install
echo "✅ Client dependencies installed"
elif command -v npm &> /dev/null; then
npm install
echo "✅ Client dependencies installed (using npm)"
else
echo "❌ Error: pnpm or npm is not installed"
exit 1
fi
cd ..
echo "✅ Setup complete!"
echo ""
echo "To start both servers, run:"
echo " npm run dev"