Added build script

This commit is contained in:
Josh Finlay 2025-01-06 10:56:52 +10:00
parent 596fbac864
commit 4d799b6151
1 changed files with 33 additions and 0 deletions

33
build.sh Executable file
View File

@ -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!"