-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
39 lines (30 loc) · 864 Bytes
/
setup.sh
File metadata and controls
39 lines (30 loc) · 864 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
39
#!/bin/bash
# Setup script for CSPM project
echo "Setting up CloudSploit-like CSPM project..."
# Install pnpm if not present
if ! command -v pnpm &> /dev/null; then
echo "Installing pnpm..."
npm install -g pnpm
fi
# Install dependencies in all workspaces
echo "Installing dependencies..."
pnpm install
# Build packages
echo "Building packages..."
pnpm build
# Start infrastructure
echo "Starting infrastructure..."
pnpm docker:up
# Wait for services to be ready
echo "Waiting for services to be ready..."
sleep 5
# Run database migrations
echo "Running database migrations..."
pnpm db:migrate
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Configure cloud credentials in apps/api/.env"
echo "2. Start API server: pnpm dev:api"
echo "3. Start UI server: pnpm dev:ui"
echo "4. Test CLI: cd apps/cli && npm run build && ./bin/run --help"