I've created a quick bat script to automate the startup. Please consider something similar:
@echo off
:: Ensure the script is running as Administrator
net session >nul 2>&1
if %errorlevel% neq 0 (
echo This script requires Administrator privileges. Please run it as Administrator.
pause
exit /b
)
:: Navigate to the project directory
cd /d C:\Miles-env\M.I.L.E.S\Miles-V2
:: Activate the virtual environment
call .\Scripts\Activate
:: Start the project with npm
npm start
:: Keep the window open after execution
pause
I've created a quick bat script to automate the startup. Please consider something similar:
@echo off
:: Ensure the script is running as Administrator
net session >nul 2>&1
if %errorlevel% neq 0 (
echo This script requires Administrator privileges. Please run it as Administrator.
pause
exit /b
)
:: Navigate to the project directory
cd /d C:\Miles-env\M.I.L.E.S\Miles-V2
:: Activate the virtual environment
call .\Scripts\Activate
:: Start the project with npm
npm start
:: Keep the window open after execution
pause