/
NoWhoFU
/
GalTech
Обзор
Документация
Войти
/
NoWhoFU
/
GalTech
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
start.bat
73 строки
2 KB
VladKost999
старт проекта
02 июн 2026, 17:41
02 июн 2026, 17:41
d44a1d7
Код
Авторство
О чём код?
@echo off title GalTech Launcher echo ==================================================================== echo Welcome to the GalTech Launcher! echo ==================================================================== echo. echo Please select startup mode: echo [1] Start locally (Fast dev mode, using JSON file storage) echo [2] Start containerized (Go API Backend + PostgreSQL DB in Docker) echo. set /p mode="Enter mode (1 or 2): " if "%mode%"=="2" ( echo. echo ==================================================================== echo Starting PostgreSQL DB and Go Backend via Docker Compose... echo ==================================================================== docker-compose up -d --build if %errorlevel% neq 0 ( echo [ERROR] Failed to start Docker Compose! echo Please ensure Docker Desktop is running on your system. pause exit /b ) echo [OK] Docker containers are up and running! ) else ( REM Local Startup (Go Backend + file storage) echo. echo Checking Go environment... where go >nul 2>nul if %errorlevel% neq 0 ( echo [ERROR] Go was not found in your PATH! echo Please install Go from https://go.dev/dl/ pause exit /b ) echo [OK] Go is installed. echo. echo Starting Go API Backend locally on port 8080... cd /d "%~dp0backend" start "GalTech Go API Backend" cmd /c "go run main.go" echo [OK] Go API Backend start signal sent. ) echo. echo Checking Node.js environment... where npm >nul 2>nul if %errorlevel% neq 0 ( echo [ERROR] Node.js/npm was not found in your PATH! echo Please install Node.js from https://nodejs.org/ pause exit /b ) echo [OK] Node.js/npm is installed. echo. echo Starting Vite + Vue 3 Frontend... cd /d "%~dp0frontend" echo [INFO] Updating and installing dependencies... call npm install echo. echo ==================================================================== echo Starting Vite dev server on http://localhost:5173 echo ==================================================================== echo. call npm run dev pause