Actualización: mejoras en ChatInterface, API, backend y nuevos archivos de diagnóstico/testing
This commit is contained in:
108
START.md
Normal file
108
START.md
Normal file
@@ -0,0 +1,108 @@
|
||||
# 🚀 Inicio Rápido - MusiaIA
|
||||
|
||||
## ✅ Ya está corriendo!
|
||||
|
||||
### 🌐 URLs de Acceso
|
||||
- **Frontend (Dashboard)**: http://localhost:5173
|
||||
- **Backend (API)**: http://localhost:8000
|
||||
- **Documentación API**: http://localhost:8000/docs
|
||||
|
||||
## 🔄 Iniciar con el Script (Recomendado)
|
||||
|
||||
Para futuras sesiones, usa el script de inicio automático:
|
||||
|
||||
```bash
|
||||
cd /home/ren/musia
|
||||
./start.sh
|
||||
```
|
||||
|
||||
Este script:
|
||||
- ✅ Carga las variables de entorno del `.env`
|
||||
- ✅ Configura ANTHROPIC_* correctamente
|
||||
- ✅ Inicia backend y frontend automáticamente
|
||||
- ✅ Verifica que ambos estén listos
|
||||
- ✅ Maneja Ctrl+C para limpiar todo
|
||||
|
||||
## 🛠️ Inicio Manual (Alternativo)
|
||||
|
||||
Si prefieres iniciar manualmente:
|
||||
|
||||
```bash
|
||||
# 1. Cargar variables de entorno
|
||||
source /home/ren/musia/.env
|
||||
|
||||
# 2. Iniciar Backend
|
||||
cd /home/ren/musia/src/backend/api
|
||||
export PYTHONPATH=/home/ren/musia/src/backend/api:/home/ren/musia/src/backend
|
||||
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
# 3. En otra terminal, iniciar Frontend
|
||||
cd /home/ren/musia/frontend
|
||||
npm run dev -- --host 0.0.0.0 --port 5173
|
||||
```
|
||||
|
||||
## 🧪 Probar que Funciona
|
||||
|
||||
### Chat
|
||||
```bash
|
||||
curl -X POST http://localhost:8000/api/chat \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"user_id": "test", "message": "Hola"}'
|
||||
```
|
||||
|
||||
### Generar Proyecto
|
||||
```bash
|
||||
curl -X POST http://localhost:8000/api/generate \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"user_id": "test", "requirements": "crea un als de rock bien 2020"}'
|
||||
```
|
||||
|
||||
## 📂 Estructura de Archivos Generados
|
||||
|
||||
```
|
||||
output/
|
||||
├── projects/ # Metadatos de proyectos
|
||||
│ └── cc314068.json # ← Info del proyecto
|
||||
└── als/ # Archivos .als generados
|
||||
└── Neon Voltage_e588d8a9/
|
||||
└── Ableton Live Project/
|
||||
└── Neon Voltage Project/
|
||||
├── Neon Voltage.als # ← ¡Abre en Ableton!
|
||||
├── Samples/
|
||||
└── Backup/
|
||||
```
|
||||
|
||||
## 🔑 Variables de Entorno Clave
|
||||
|
||||
El archivo `.env` incluye:
|
||||
|
||||
```env
|
||||
# Claude Code / Anthropic
|
||||
ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
|
||||
ANTHROPIC_AUTH_TOKEN=6fef8efda3d24eb9ad3d718daf1ae9a1.RcFc7QPe5uZLr2mS
|
||||
|
||||
# GLM4.6
|
||||
GLM46_API_KEY=6fef8efda3d24eb9ad3d718daf1ae9a1.RcFc7QPe5uZLr2mS
|
||||
GLM46_BASE_URL=https://api.z.ai/api/paas/v4
|
||||
```
|
||||
|
||||
## 🎵 Prueba en el Frontend
|
||||
|
||||
1. Abre http://localhost:5173
|
||||
2. Escribe: "crea un als de rock bien 2020"
|
||||
3. ¡Ve el proyecto generarse!
|
||||
|
||||
## 🛑 Detener los Servidores
|
||||
|
||||
```bash
|
||||
# Con el script start.sh
|
||||
# Presiona Ctrl+C
|
||||
|
||||
# Manual
|
||||
pkill -f "uvicorn.*main:app"
|
||||
pkill -f "vite.*5173"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**¡Listo para crear música con IA!** 🎼🤖
|
||||
Reference in New Issue
Block a user