-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
Β·31 lines (25 loc) Β· 771 Bytes
/
Copy pathdev.sh
File metadata and controls
executable file
Β·31 lines (25 loc) Β· 771 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
#!/bin/bash
# Development script for Bun-based CodeViewer
echo "π Starting CodeViewer with Bun..."
# Check if Bun is installed
if ! command -v bun &> /dev/null; then
echo "β Bun is not installed. Please install Bun first:"
echo "curl -fsSL https://bun.sh/install | bash"
exit 1
fi
# Replace package.json files with Bun versions
echo "π¦ Setting up Bun configuration..."
cp package.bun.json package.json
cp backend/package.bun.json backend/package.json
# Install dependencies
echo "π₯ Installing dependencies..."
bun install
cd backend && bun install
cd ..
# Initialize database
echo "ποΈ Initializing database..."
cd backend && bun run migrate
cd ..
# Start both frontend and backend
echo "π Starting development servers..."
bun run dev