Web Development Course
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

windows.cmd 303B

1234567891011121314151617
  1. @ECHO OFF
  2. SETLOCAL ENABLEEXTENSIONS
  3. PUSHD "%~dp0" >NUL && SET parent=%CD% && POPD >NUL
  4. WHERE node
  5. IF %ERRORLEVEL% NEQ 0 (
  6. START https://nodejs.org/
  7. EXIT
  8. )
  9. CD %parent%\..\src
  10. IF NOT EXIST "node_modules" npm install
  11. START "" /B node bin\server.js
  12. TIMEOUT 2 >NULL
  13. START http://localhost:3000/
  14. PAUSE