From 4e5e8d49f864c00d426155456198e984e1fca96d Mon Sep 17 00:00:00 2001 From: Arpit Pathak <119810812+Thepathakarpit@users.noreply.github.com> Date: Wed, 21 Aug 2024 23:02:45 +0530 Subject: [PATCH] Create setup.bat --- setup.bat | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 setup.bat diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..169a458 --- /dev/null +++ b/setup.bat @@ -0,0 +1,45 @@ +@echo off + +rem Check if Python is installed +where python >nul 2>nul +if errorlevel 1 ( + echo Python is not installed. Please install Python and try again. + pause + exit /b +) + +rem Check if pip is installed +python -m pip --version >nul 2>nul +if errorlevel 1 ( + echo Pip is not installed. Installing Pip... + powershell Invoke-WebRequest -Uri "https://bootstrap.pypa.io/get-pip.py" -OutFile "get-pip.py" + python get-pip.py + del get-pip.py +) + +rem Install dependencies +echo Installing dependencies... +pip install pipenv + +rem Clone the MeTube repository +echo Cloning the MeTube repository... +git clone https://github.com/alexta69/metube.git +cd metube + +rem Install Python dependencies +echo Installing Python dependencies... +pipenv install + +rem Build the Angular UI +echo Building the Angular UI... +cd ui +npm install +node_modules\.bin\ng build +cd .. + +rem Run the MeTube server +echo Starting the MeTube server... +pipenv run python app\main.py + +echo MeTube setup complete! +pause