Files
Laca-City/scripts/docker-dev.sh
PhongPham e0e47d57c7 feat: Enhanced CSS animations, improved UI components, and project reorganization
- Enhanced globals.css with comprehensive animation system
- Added advanced map marker animations (GPS, parking)
- Improved button and filter animations with hover effects
- Added new UI components: BookingModal, ParkingDetails, WheelPicker
- Reorganized project structure with better documentation
- Added optimization scripts and improved development workflow
- Updated deployment guides and technical documentation
- Enhanced mobile responsiveness and accessibility support
2025-08-03 07:00:22 +07:00

54 lines
1.5 KiB
Bash

#!/bin/bash
# 🐳 Smart Parking Finder - Docker Development Environment
echo "🚗 Starting Smart Parking Finder Development Environment with Docker..."
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Navigate to project root (go back one level since we're in scripts folder)
cd "$(dirname "$0")/.."
# Check required tools
echo "Checking required tools..."
if ! command_exists docker; then
echo "❌ Docker is not installed. Please install Docker first."
echo "📥 Download from: https://www.docker.com/products/docker-desktop"
exit 1
fi
# Check if Docker is running
if ! docker info >/dev/null 2>&1; then
echo "❌ Docker is not running. Please start Docker and try again."
exit 1
fi
echo "✅ All requirements met!"
echo ""
# Start services with docker-compose
echo "🐳 Starting services with Docker Compose..."
docker-compose up -d
# Wait for services to be ready
echo "⏳ Waiting for services to be ready..."
sleep 10
echo ""
echo "🎉 Smart Parking Finder is now running!"
echo "📋 Service URLs:"
echo " 🎨 Frontend: http://localhost:3000"
echo " 🔧 Backend API: http://localhost:3001"
echo " 📊 API Docs: http://localhost:3001/api/docs"
echo " 🗄️ Database: localhost:5432"
echo " 🔴 Redis: localhost:6379"
echo " 🗺️ Valhalla: localhost:8002"
echo ""
echo "🔧 Management commands:"
echo " 📋 View logs: docker-compose logs -f"
echo " 🛑 Stop all: docker-compose down"
echo " 🗑️ Clean up: docker-compose down -v"
echo ""