chore: remove bun.lock file, update package.json for workspace configuration, and adjust dependencies across apps and packages

This commit is contained in:
2025-10-27 11:06:59 -03:00
parent 6bfc0c2ced
commit 929633492d
29 changed files with 6964 additions and 602 deletions

View File

@@ -1,2 +1,3 @@
.env
.env.local
.convex/

View File

@@ -0,0 +1,49 @@
# Script para iniciar Convex local e popular o banco de dados
Write-Host "🚀 SGSE - Inicialização do Convex Local" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
# 1. Verificar se já está rodando
$convexRunning = Get-NetTCPConnection -LocalPort 3210 -ErrorAction SilentlyContinue
if ($convexRunning) {
Write-Host "✅ Convex já está rodando na porta 3210" -ForegroundColor Green
} else {
Write-Host "⏳ Iniciando Convex local..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd '$PSScriptRoot'; bunx convex dev"
Write-Host "⏳ Aguardando Convex inicializar (20 segundos)..." -ForegroundColor Yellow
Start-Sleep -Seconds 20
}
# 2. Verificar se o banco foi criado
if (Test-Path ".convex") {
Write-Host "✅ Banco de dados local criado!" -ForegroundColor Green
} else {
Write-Host "❌ Erro: Banco não foi criado" -ForegroundColor Red
Write-Host "⏳ Aguardando mais 10 segundos..." -ForegroundColor Yellow
Start-Sleep -Seconds 10
}
# 3. Popular banco com dados iniciais
Write-Host ""
Write-Host "🌱 Populando banco de dados com dados iniciais..." -ForegroundColor Cyan
Write-Host ""
try {
bunx convex run seed:seedDatabase
Write-Host ""
Write-Host "✅ Banco populado com sucesso!" -ForegroundColor Green
Write-Host ""
Write-Host "🔑 CREDENCIAIS DE ACESSO:" -ForegroundColor Yellow
Write-Host " Admin: matrícula 0000, senha Admin@123" -ForegroundColor White
Write-Host " Funcionários: usar matrícula, senha Mudar@123" -ForegroundColor White
Write-Host ""
Write-Host "🌐 Acesse: http://localhost:5173" -ForegroundColor Cyan
} catch {
Write-Host "❌ Erro ao popular banco: $_" -ForegroundColor Red
}
Write-Host ""
Write-Host "Pressione qualquer tecla para continuar..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

View File

@@ -10,11 +10,11 @@
"description": "",
"devDependencies": {
"@types/node": "^24.3.0",
"typescript": "catalog:"
"typescript": "^5.9.2"
},
"dependencies": {
"@convex-dev/better-auth": "^0.9.6",
"convex": "catalog:",
"better-auth": "catalog:"
"convex": "^1.28.0",
"better-auth": "1.3.27"
}
}