51 lines
1.5 KiB
Bash
Executable File
51 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# EVE Application Run Script
|
|
# Starts the Tauri development server with hot-reload
|
|
|
|
set -e
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
YELLOW='\033[1;33m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m'
|
|
|
|
echo -e "${BLUE}╔════════════════════════════════════════════════════════╗${NC}"
|
|
echo -e "${BLUE}║ Starting EVE Development Server ║${NC}"
|
|
echo -e "${BLUE}╚════════════════════════════════════════════════════════╝${NC}"
|
|
echo ""
|
|
|
|
# Check if .env exists
|
|
if [ ! -f ".env" ]; then
|
|
echo -e "${YELLOW}[WARNING]${NC} .env file not found"
|
|
echo -e "${YELLOW}[INFO]${NC} Creating .env from .env.example..."
|
|
cp .env.example .env
|
|
echo -e "${YELLOW}[INFO]${NC} Please edit .env and add your API keys"
|
|
echo ""
|
|
fi
|
|
|
|
# Check if node_modules exists
|
|
if [ ! -d "node_modules" ]; then
|
|
echo -e "${YELLOW}[WARNING]${NC} node_modules not found"
|
|
echo -e "${BLUE}[INFO]${NC} Installing dependencies..."
|
|
npm install
|
|
echo ""
|
|
fi
|
|
|
|
# Save PID for kill script
|
|
mkdir -p .dev
|
|
echo $$ > .dev/run.pid
|
|
|
|
echo -e "${GREEN}[STARTING]${NC} Launching Tauri development server..."
|
|
echo -e "${BLUE}[INFO]${NC} Press Ctrl+C to stop the server"
|
|
echo -e "${BLUE}[INFO]${NC} Or run: ./kill.sh"
|
|
echo ""
|
|
|
|
# Start the development server
|
|
npm run tauri:dev
|
|
|
|
# Cleanup on exit
|
|
rm -f .dev/run.pid
|