# PowerShell helper to deploy Firebase rules and hosting for FortiPass
# Run from project root. Requires Node.js and npm.

# Install dev dependencies (first time)
npm install

# Login to Firebase (interactive)
npx firebase login

# Associate your local project with a Firebase project (run once)
# This prompts you to pick or enter your Firebase project id
npx firebase use --add

# Deploy Firestore rules and hosting
npx firebase deploy --only firestore:rules,hosting

Write-Host "Deployment complete (or errors displayed above)."