chore: sync

This commit is contained in:
2026-03-18 22:06:43 +08:00
parent e89678e61a
commit 0c4380c3c3
45 changed files with 5883 additions and 2 deletions

33
sproutgate.bat Normal file
View File

@@ -0,0 +1,33 @@
@echo off
setlocal
set "ROOT_DIR=%~dp0"
set "MODE=%~1"
if "%MODE%"=="" set "MODE=dev"
if /I "%MODE%"=="dev" goto DEV
if /I "%MODE%"=="build" goto BUILD
echo Usage: sproutgate.bat [dev^|build]
exit /b 1
:DEV
echo ==^> Starting backend (Gin)...
start "SproutGate Backend" cmd /k "cd /d %ROOT_DIR%sproutgate-backend && go run ."
echo ==^> Starting frontend (React)...
cd /d %ROOT_DIR%sproutgate-frontend
if not exist node_modules (
npm install
)
npm run dev
exit /b 0
:BUILD
echo ==^> Building frontend...
cd /d %ROOT_DIR%sproutgate-frontend
if not exist node_modules (
npm install
)
npm run build
exit /b 0