29 lines
790 B
Batchfile
29 lines
790 B
Batchfile
@echo off
|
|
REM Astral Studio - One-Time Setup Script
|
|
REM This script installs all dependencies and starts the development server.
|
|
|
|
echo ------------------------------------------------------------------
|
|
echo [ASTRAL STUDIO] Initializing Environment...
|
|
echo ------------------------------------------------------------------
|
|
|
|
REM Check if Node.js is installed
|
|
where node >nul 2>nul
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Node.js is not installed. Please install Node.js from https://nodejs.org/
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo [1/2] Installing Dependencies...
|
|
call npm install --legacy-peer-deps
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Failed to install dependencies.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo [2/2] Starting Development Server...
|
|
call npm run dev
|
|
|
|
pause
|