-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
36 lines (29 loc) Β· 859 Bytes
/
start.sh
File metadata and controls
36 lines (29 loc) Β· 859 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
#!/bin/bash
echo "π Starting ShellUI..."
# Check if bun is installed
if ! command -v bun &> /dev/null; then
echo "β Bun is not installed. Please install it first:"
echo "curl -fsSL https://bun.sh/install | bash"
exit 1
fi
# Install dependencies if needed
if [ ! -d "node_modules" ]; then
echo "π¦ Installing dependencies..."
bun install
fi
if [ ! -d "src/client/node_modules" ]; then
echo "π¦ Installing client dependencies..."
cd src/client && bun install && cd ../..
fi
# Check if config exists
if [ ! -f "config.yaml" ]; then
echo "π Creating config.yaml from example..."
cp config.example.yaml config.yaml
fi
# Start the application
echo "β¨ ShellUI is starting..."
echo "π Server: http://localhost:3000"
echo "π Client: http://localhost:5173"
echo ""
echo "Press Ctrl+C to stop"
bun run dev