adding .bat and .sh files to setup and start project easily
This commit is contained in:
25
setup_win.bat
Normal file
25
setup_win.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
|
||||
REM Install npm packages
|
||||
echo Installing npm packages...
|
||||
call npm i
|
||||
|
||||
echo Creating Python virtual environment...
|
||||
call python -m venv venv
|
||||
|
||||
REM Install Python packages using pip
|
||||
echo Installing Python dependencies...
|
||||
call "./venv/scripts/python.exe" "./venv/scripts/pip.exe" install -r requirements.txt
|
||||
|
||||
REM Prisma Migrations
|
||||
echo Applying Prisma Migrations...
|
||||
call npx prisma generate
|
||||
call npx prisma migrate deploy
|
||||
|
||||
REM Building the project
|
||||
echo Building the project
|
||||
call npm run build
|
||||
|
||||
REM Building is finished
|
||||
echo Building is finished
|
||||
pause
|
||||
Reference in New Issue
Block a user