adding .bat and .sh files to setup and start project easily

This commit is contained in:
Eng. Elias
2024-03-24 20:04:24 +04:00
parent a2fcd07924
commit f7af9ac7ae
6 changed files with 86 additions and 4 deletions

25
setup_win.bat Normal file
View 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