diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e8ac0e3 --- /dev/null +++ b/build.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Exit on any error +set -e + +echo "🏗️ Building DLB Gatekeeper..." + +# Build Frontend +echo "📦 Building Frontend..." +cd frontend +npm install +npm run build +cd .. + +# Build Backend +echo "📦 Building Backend..." +cd backend +npm install +npm run build +cd .. + +# Create dist directory if it doesnt exist +mkdir -p dist + +# Copy frontend build to dist +echo "📋 Copying frontend build..." +cp -r frontend/dist/* dist/ + +# Copy backend build to dist +echo "📋 Copying backend build..." +cp -r backend/dist/* dist/ + +echo "✅ Build complete!"