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

81
EXECUTAR_AGORA.md Normal file
View File

@@ -0,0 +1,81 @@
# 🚀 EXECUTE ESTES COMANDOS AGORA!
**Copie e cole um bloco por vez no PowerShell**
---
## BLOCO 1: Limpar tudo
```powershell
cd "C:\Users\Deyvison\OneDrive\Desktop\Secretaria de Esportes\Tecnologia da Informacao\SGSE\sgse-app"
taskkill /F /IM node.exe 2>$null
taskkill /F /IM bun.exe 2>$null
Remove-Item node_modules -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item apps\web\node_modules -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item packages\backend\node_modules -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item bun.lock -Force -ErrorAction SilentlyContinue
Write-Host "LIMPEZA CONCLUIDA!" -ForegroundColor Green
```
---
## BLOCO 2: Instalar com Bun
```powershell
bun install --ignore-scripts
Write-Host "INSTALACAO CONCLUIDA!" -ForegroundColor Green
```
---
## BLOCO 3: Adicionar pacotes no frontend
```powershell
cd apps\web
bun add -D postcss autoprefixer esbuild --ignore-scripts
cd ..\..
Write-Host "PACOTES ADICIONADOS!" -ForegroundColor Green
```
---
## BLOCO 4: Iniciar Backend (Terminal 1)
**Abra um NOVO terminal PowerShell e execute:**
```powershell
cd "C:\Users\Deyvison\OneDrive\Desktop\Secretaria de Esportes\Tecnologia da Informacao\SGSE\sgse-app\packages\backend"
bunx convex dev
```
**Aguarde ver:** `✔ Convex functions ready!`
---
## BLOCO 5: Iniciar Frontend (Terminal 2)
**Abra OUTRO terminal PowerShell e execute:**
```powershell
cd "C:\Users\Deyvison\OneDrive\Desktop\Secretaria de Esportes\Tecnologia da Informacao\SGSE\sgse-app\apps\web"
bun run dev
```
**Aguarde ver:** `VITE ... ready`
---
## BLOCO 6: Testar no Navegador
Acesse: **http://localhost:5173**
Navegue para: **Recursos Humanos > Funcionários**
Deve listar **3 funcionários**!
---
✅ Execute os blocos 1, 2 e 3 AGORA!
✅ Depois abra 2 terminais novos para blocos 4 e 5!
✅ Finalmente teste no navegador (bloco 6)!