Estructura propuesta:
frontend/— páginas estáticas HTML/CSS/JS para signup, forgot y reset.backend/— API Node.js (Express) que se conecta a SQL Server y expone endpoints.
Cómo probar localmente
-
Preparar la base de datos en SQL Server ejecutando el script SQL provisto (crea
HistoriaClinicaDBy tablas). Asegúrate de que el loginKeiMagexista y tenga permisos. -
Iniciar backend:
cd backend
npm install
npm start- Abrir frontend: puedes servir la carpeta
frontend/con cualquier servidor estático. Ejemplo rápido con Python 3:
cd frontend
python -m http.server 8000
# Abrir en el navegador:
# http://localhost:8000/signup.html
# http://localhost:8000/forgot.html
# http://localhost:8000/reset.html?token=...Si frontend y backend están en orígenes distintos, edita frontend/config.js para poner window.BACKEND_URL = 'http://localhost:3000'.