# Inicio Rápido 🚀 ## Instalación Rápida (Windows) 1. **Ejecutar script de configuración:** ```bash setup.bat ``` 2. **Editar `.env` con tus credenciales:** ```env DATABASE_URL=postgresql://usuario:password@localhost:5432/pedidos_clientes OPENAI_API_KEY=tu-api-key ``` 3. **Iniciar sistema:** ```bash start.bat ``` ## Instalación Rápida (Linux/Mac) 1. **Dar permisos de ejecución:** ```bash chmod +x setup.sh start.sh ``` 2. **Ejecutar configuración:** ```bash ./setup.sh ``` 3. **Editar `.env` con tus credenciales** 4. **Iniciar sistema:** ```bash ./start.sh ``` ## Instalación Manual ### 1. Instalar dependencias ```bash npm install pip install -r requirements_prisma.txt ``` ### 2. Configurar `.env` ```env DATABASE_URL=postgresql://postgres:postgres@localhost:5432/pedidos_clientes OPENAI_API_KEY=tu-api-key ``` ### 3. Generar Prisma y crear BD ```bash prisma generate prisma migrate dev --name init ``` ### 4. Iniciar Backend (Terminal 1) ```bash python run.py ``` ### 5. Iniciar Frontend (Terminal 2) ```bash cd frontend python -m http.server 3000 ``` ## URLs - **Frontend:** http://localhost:3000 - **Backend API:** http://localhost:8000 - **API Docs:** http://localhost:8000/docs ## Verificación Abre http://localhost:3000 y deberías ver el Kanban. Si ves errores, revisa: - ✅ PostgreSQL está corriendo - ✅ `.env` está configurado - ✅ Dependencias instaladas - ✅ Puertos 8000 y 3000 disponibles