Deroino commited on
Commit ·
e7cdf9f
1
Parent(s): 418bb6c
chore(windows): add Windows batch script for one-click startup
Browse filesAdd a Windows batch script to launch both backend and frontend servers with a single click.
This script:
- Starts the Python backend server in a new window
- Starts the Vue.js frontend server in another window
- Includes proper window titles and logging
- Automatically closes the launcher window after 10 seconds
- start-win.bat +27 -0
start-win.bat
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
TITLE One-Click Starter for social-auto-upload
|
| 3 |
+
|
| 4 |
+
ECHO ==================================================
|
| 5 |
+
ECHO Starting social-auto-upload Servers...
|
| 6 |
+
ECHO ==================================================
|
| 7 |
+
ECHO.
|
| 8 |
+
|
| 9 |
+
ECHO [1/2] Starting Python Backend Server in a new window...
|
| 10 |
+
REM The START command launches a new process.
|
| 11 |
+
REM The first quoted string "SAU Backend" is the title of the new window.
|
| 12 |
+
REM cmd /k runs the command and keeps the window open to show logs.
|
| 13 |
+
START "SAU Backend" cmd /k "python sau_backend.py"
|
| 14 |
+
|
| 15 |
+
ECHO [2/2] Starting Vue.js Frontend Server in another new window...
|
| 16 |
+
START "SAU Frontend" cmd /k "cd sau_frontend && npm run dev -- --host 0.0.0.0"
|
| 17 |
+
|
| 18 |
+
ECHO.
|
| 19 |
+
ECHO ==================================================
|
| 20 |
+
ECHO Done.
|
| 21 |
+
ECHO Two new windows have been opened for the backend
|
| 22 |
+
ECHO and frontend servers. You can monitor logs there.
|
| 23 |
+
ECHO ==================================================
|
| 24 |
+
ECHO.
|
| 25 |
+
|
| 26 |
+
ECHO This window will close in 10 seconds...
|
| 27 |
+
timeout /t 10 /nobreak > nul
|