12 lines
249 B
Batchfile
12 lines
249 B
Batchfile
@echo off
|
|
cd /d %~dp0
|
|
cd ..\backend
|
|
|
|
echo Checking port 3000...
|
|
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3000 ^| findstr LISTENING') do (
|
|
taskkill /F /PID %%a
|
|
)
|
|
|
|
echo Starting Backend Server...
|
|
:: start http://localhost:3000
|
|
npm start |