reinit
This commit is contained in:
commit
ad8c238e78
53 changed files with 10091 additions and 0 deletions
29
build.sh
Executable file
29
build.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Build script for GoCheck
|
||||
|
||||
echo "🏗️ Building GoCheck..."
|
||||
|
||||
# Build frontend
|
||||
echo "📦 Building frontend..."
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
cd ..
|
||||
|
||||
# Copy frontend dist to backend for embedding
|
||||
echo "📋 Copying frontend dist to backend..."
|
||||
rm -rf backend/frontend
|
||||
mkdir -p backend/frontend
|
||||
cp -r frontend/dist backend/frontend/
|
||||
|
||||
# Build backend
|
||||
echo "🔨 Building backend..."
|
||||
cd backend
|
||||
go build -o gocheck
|
||||
cd ..
|
||||
|
||||
# Move binary to root
|
||||
mv backend/gocheck .
|
||||
|
||||
echo "✅ Build complete! Binary is at ./gocheck"
|
Loading…
Add table
Add a link
Reference in a new issue