#!/bin/bash # 🚗 Smart Parking Finder - Quick Launcher # This script provides quick access to all available scripts # Colors for output BLUE='\033[0;34m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color echo -e "${BLUE}🚗 Smart Parking Finder - Quick Launcher${NC}" echo -e "${BLUE}=========================================${NC}" echo "" echo -e "${GREEN}Available scripts:${NC}" echo -e "${YELLOW} 📋 ./scripts/start.sh${NC} - Interactive menu with all options" echo -e "${YELLOW} 🎨 ./scripts/frontend-only.sh${NC} - Start frontend only (fastest)" echo -e "${YELLOW} 🔄 ./scripts/full-dev.sh${NC} - Full development (frontend + backend)" echo -e "${YELLOW} 🐳 ./scripts/docker-dev.sh${NC} - Docker development environment" echo -e "${YELLOW} 🛠️ ./scripts/setup.sh${NC} - Initial project setup" echo "" echo -e "${GREEN}Quick actions:${NC}" echo -e "${YELLOW} 1. First time setup${NC} → ./scripts/setup.sh" echo -e "${YELLOW} 2. Quick demo${NC} → ./scripts/frontend-only.sh" echo -e "${YELLOW} 3. Full development${NC} → ./scripts/full-dev.sh" echo -e "${YELLOW} 4. Interactive menu${NC} → ./scripts/start.sh" echo "" # Make scripts executable if they aren't already chmod +x scripts/*.sh # Check if user wants to run a script directly if [ $# -eq 0 ]; then echo -e "${GREEN}💡 Tip: Add a number (1-4) to run directly, or just press Enter for the interactive menu${NC}" read -p "Enter your choice (1-4) or press Enter for menu: " choice case $choice in 1) echo -e "${GREEN}Running setup...${NC}" ./scripts/setup.sh ;; 2) echo -e "${GREEN}Starting frontend only...${NC}" ./scripts/frontend-only.sh ;; 3) echo -e "${GREEN}Starting full development...${NC}" ./scripts/full-dev.sh ;; 4|"") echo -e "${GREEN}Opening interactive menu...${NC}" ./scripts/start.sh ;; *) echo -e "${GREEN}Opening interactive menu...${NC}" ./scripts/start.sh ;; esac else case $1 in 1|setup) ./scripts/setup.sh ;; 2|frontend) ./scripts/frontend-only.sh ;; 3|full) ./scripts/full-dev.sh ;; 4|menu) ./scripts/start.sh ;; *) ./scripts/start.sh ;; esac fi