forked from kabirjaipal/JUGNU-MUSIC
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fdd57a
commit aa7e0ee
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@echo off | ||
|
||
:: Check if Node.js is installed | ||
where node >nul 2>nul | ||
if %errorlevel% equ 1 ( | ||
echo Node.js not found. Installing... | ||
:: Download and install Node.js | ||
powershell -Command "Invoke-WebRequest -Uri 'https://nodejs.org/dist/latest/node.exe' -OutFile 'node.exe'" | ||
node.exe /verysilent /install | ||
del node.exe | ||
echo Node.js installed. | ||
) else ( | ||
echo Node.js found. | ||
) | ||
|
||
:: Install dependencies | ||
echo Installing dependencies... | ||
npm install | ||
echo Dependencies installed. | ||
|
||
:: Start the server | ||
echo Starting server... | ||
node server.js | ||
echo Server started. | ||
|
||
pause |