ibanking-api-ai/setup.sh

49 lines
1.7 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# =========================================================================
# setup.sh — Inicialización automática de entorno ibanking-ai-api (Mac/Linux)
# =========================================================================
echo "========================================================="
echo "🚀 Iniciando inicialización de entorno ibanking-ai-api..."
echo "========================================================="
# 1. Copiar archivo de entorno si no existe
if [ ! -f .env.local ]; then
echo "Creating .env.local from template..."
cp .env.local.template .env.local
echo "✅ Archivo .env.local configurado correctamente."
else
echo " .env.local ya existe. Se omite la copia."
fi
# 2. Instalar dependencias del proyecto
if [ -f package.json ]; then
echo "Instalando dependencias de Node.js..."
npm install
echo "✅ Dependencias de Node.js instaladas."
fi
# 3. Inicializar e instalar Graphify y Engram MCP Servers
echo "Configurando herramientas de ingeniería AI-Native..."
if ! command -v uv &> /dev/null; then
echo "Instalando gestor de paquetes python 'uv'..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
fi
echo "Instalando/Actualizando Graphify..."
uv tool install graphifyy && graphify install
echo "Integrando Graphify con el agente Antigravity..."
graphify antigravity install
# 4. Crear carpeta de logs local
mkdir -p logs
touch logs/app.log
echo "========================================================="
echo "🎉 ¡Todo listo! Ejecuta 'docker-compose up -d' para mocks"
echo "y luego 'npm run dev' para iniciar el servidor Next.js."
echo "========================================================="