Frontend web (Next.js) del asistente LLM A.L.I.C.E. — chat, tema claro/oscuro y splash de carga.
Explorar repositorio »
Ver código
·
Reportar bug
·
Pedir feature
Tabla de contenidos
A.L.I.C.E. (frontend) es la interfaz de chat del asistente LLM.
Incluye:
- Chat con streaming hacia el backend Flask.
- Sidebar de conversaciones, tema claro/oscuro y wordmark metálico.
- Splash de carga sincronizado con el health/warmup del backend.
- Micrófono del navegador + TTS del cliente (sin STT/TTS en el server).
Note
No necesitas instalar nada global aparte de Node.js.
Usa npm run dev para levantar el servidor local.
Important
Este repo es el frontend. Para chatear necesitas el backend de A.L.I.C.E. corriendo y configurar NEXT_PUBLIC_API_URL en .env.local.
- Node.js (recomendado: LTS)
- npm
- Backend A.L.I.C.E. en
http://localhost:5000(o la URL que configures)
- Clonar el repositorio
git clone https://github.com/hexed-AAL1X/A.L.I.C.E-front.git
cd A.L.I.C.E-front- Instalar dependencias
npm install- Configurar entorno
cp .env.local.example .env.local
# o crea .env.local con:
# NEXT_PUBLIC_API_URL=http://localhost:5000- Ejecutar en modo desarrollo
npm run dev- Abrir en el navegador
http://localhost:3000/
npm run dev # next dev
npm run build # build producción
npm run start # next start
npm run lint # eslintVariables en .env.local (Next.js):
| Variable | Descripción | Default |
|---|---|---|
NEXT_PUBLIC_API_URL |
URL base del backend Flask | http://localhost:5000 |
El front llama, entre otros, a /api/health, /api/warmup y /api/chat/stream.
- Root directory:
frontend(si el monorepo incluye más carpetas) o la raíz de este repo - Build command:
npm ci && npm run build- Start command:
npm run start -- -p $PORT- Env:
NEXT_PUBLIC_API_URL=https://TU-BACKEND.onrender.comNote
En el free tier de Render el servicio duerme tras inactividad; el splash del front espera a /api/health.
Contribuciones bienvenidas.
- Fork del proyecto
- Crear una rama (
git checkout -b feature/nueva-feature) - Commit (
git commit -m "Add: ...") - Push (
git push origin feature/nueva-feature) - Pull Request


