-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding .bat and .sh files to setup and start project easily
- Loading branch information
Showing
6 changed files
with
86 additions
and
4 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
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
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 @@ | ||
#!/bin/bash | ||
|
||
# Install npm packages | ||
echo "Installing npm packages..." | ||
npm i | ||
|
||
# Create Python virtual environment | ||
echo "Creating Python virtual environment..." | ||
python3 -m venv venv | ||
|
||
# Install Python packages using pip | ||
echo "Installing Python dependencies..." | ||
./venv/bin/python ./venv/bin/pip install -r requirements.txt | ||
|
||
# Prisma Migrations | ||
echo "Applying Prisma Migrations..." | ||
npx prisma generate | ||
npx prisma migrate deploy | ||
|
||
# Building the project | ||
echo "Building the project..." | ||
npm run build | ||
|
||
# Building is finished | ||
echo "Building is finished" | ||
pause |
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,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 |
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,9 @@ | ||
#!/bin/bash | ||
|
||
# Open browser | ||
echo "Opening browser..." | ||
open http://localhost:3000 | ||
|
||
# Run the project | ||
echo "Starting development server..." | ||
npm start |
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,10 @@ | ||
REM Run the project | ||
echo Starting development server... | ||
start call npm start | ||
|
||
REM Wait for a few seconds to ensure the server is up and running | ||
timeout /t 2 | ||
|
||
REM Open browser | ||
echo Opening browser... | ||
start http://localhost:3000 |