# ENTREGA — RewardFlow Enterprise

## Checklist Site Builder

- [x] Backend API REST (`src/`)
- [x] Frontend React SPA (`client/` → `/admin/`)
- [x] MySQL schema + seed (`database/schema.sql`, `npm run db:setup`)
- [x] Login JWT demo (README credenciales)
- [x] Tests `npm test` (18 tests pass)
- [x] Wiki HTML (`docs/wiki/index.html`)
- [x] Theme CSS (`public/css/theme.css`, corporate-light)
- [x] Landing comercial (`landing/index.html`, `/landing/styles.css`)
- [x] Webchat demo (`public/webchat/`, webhook público)
- [x] Docker + docker-compose
- [x] OpenAPI `/api-docs`
- [x] Health `/health`, `/api/health`

## Credenciales demo

Password: **Demo2026!**

- empleado@demo.com (employee)
- admin@demo.com (admin)
- rrhh@demo.com (hr)

## Comandos verificación

```bash
npm install --include=dev
npm run db:setup
npm test
npm start
curl http://localhost:4100/health
curl -X POST http://localhost:4100/api/v1/auth/login -H 'Content-Type: application/json' -d '{"email":"empleado@demo.com","password":"Demo2026!"}'
```

## URL producción

https://rewardflow-enterprise.178.105.214.250.sslip.io/

## Pendientes evolutivos

- Integración Azure AD real (stub implementado)
- SMTP producción (stub activo)
- Tests E2E Playwright (checklist manual en wiki QA)
