first commit

This commit is contained in:
Anurag Jangid 2026-10-08 02:52:58 +05:30
commit 34ea15a54d
246 changed files with 18660 additions and 0 deletions

16
scripts/dev-backend.ps1 Normal file
View file

@ -0,0 +1,16 @@
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
Set-Location (Join-Path $Root "backend")
if (-not (Test-Path ".venv")) {
python -m venv .venv
}
& .\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
if (-not (Test-Path ".env")) {
Copy-Item ".env.example" ".env"
Write-Host "Created backend/.env from .env.example — update values as needed."
}
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

16
scripts/dev-backend.sh Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT/backend"
if [[ ! -d .venv ]]; then
python3 -m venv .venv
fi
# shellcheck source=/dev/null
source .venv/bin/activate
pip install -r requirements.txt
if [[ ! -f .env ]]; then
cp .env.example .env
echo "Created backend/.env from .env.example"
fi
exec uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

13
scripts/dev-frontend.ps1 Normal file
View file

@ -0,0 +1,13 @@
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
Set-Location (Join-Path $Root "frontend")
if (-not (Test-Path "node_modules")) {
npm install
}
if (-not (Test-Path ".env")) {
Copy-Item ".env.example" ".env"
}
npm run dev

10
scripts/dev-frontend.sh Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT/frontend"
npm install
if [[ ! -f .env ]]; then
cp .env.example .env
fi
exec npm run dev

4
scripts/migrate.ps1 Normal file
View file

@ -0,0 +1,4 @@
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
Set-Location (Join-Path $Root "backend")
& .\.venv\Scripts\python.exe scripts/migrate.py