Fix SPA routing and static file paths
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# Sale Development Server
|
||||
|
||||
echo "🚀 Starting Sale Development Server..."
|
||||
|
||||
# Backend
|
||||
cd /root/sale/backend
|
||||
echo "📦 Installing backend dependencies..."
|
||||
go mod download
|
||||
echo "🔨 Building backend..."
|
||||
go build -o server ./cmd/server
|
||||
|
||||
# Frontend
|
||||
cd /root/sale/frontend
|
||||
echo "📦 Installing frontend dependencies..."
|
||||
npm ci
|
||||
echo "🔨 Building frontend..."
|
||||
npm run build
|
||||
|
||||
# Run with Docker
|
||||
cd /root/sale
|
||||
echo "🐳 Starting with Docker..."
|
||||
docker-compose up -d
|
||||
|
||||
echo "✅ Development server started!"
|
||||
echo "📍 Frontend: http://localhost:8080"
|
||||
echo "📍 Backend: http://localhost:8080/api"
|
||||
Reference in New Issue
Block a user