- Node.js 22+ (requerido para node:sqlite)
- npm
- Windows 10/11 (para build de Electron)
git clone https://github.com/Charles-X-Core/odontologia-sistema.git
cd odontologia-sistema# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm install
# Electron (en la raiz)
cd ..
npm installcd backend
npm run seedBackend (terminal 1):
cd backend
npm start
# Servidor en http://localhost:3001Frontend (terminal 2):
cd frontend
npm run dev
# App en http://localhost:5173| Usuario | Contrasena | Rol |
|---|---|---|
| admin | admin | Administrador |
| doctor | doctor | Odontologo |
npm startnpm run buildEl instalador se genera en dist-electron/Clinica Dental Pro Setup 1.0.0.exe
dist-electron/
├── Clinica Dental Pro Setup 1.0.0.exe ← Instalador NSIS
├── win-unpacked/ ← Version portable
└── builder-effective-config.yaml
- Crear cuenta en render.com
- New Web Service → Conectar GitHub
- Configurar:
- Root Directory:
backend - Build Command:
npm install - Start Command:
node src/seed.js && node src/index.js
- Root Directory:
- Environment Variables:
NODE_ENV=productionJWT_SECRET=tu-clave-secretaFRONTEND_URL=https://tu-app.vercel.app
- Crear cuenta en vercel.com
- Import GitHub repo
- Configurar:
- Framework: Vite
- Root Directory:
frontend - Build Command:
npm run build - Output Directory:
dist
- Environment Variables:
VITE_API_URL=https://tu-backend.onrender.com/api
# Matar procesos node
Get-Process -Name "node" | Stop-Process -Force# Eliminar y recrear
cd backend
Remove-Item clinica.db*
npm run seed# Reinstalar electron
cd ..
Remove-Item -Recurse node_modules
npm installVerificar que vite.config.js tenga base: './'