#!/bin/bash

echo "Starting Lawn Scheduler in Development Mode..."

# Create necessary directories
mkdir -p uploads

# Build and start services
docker compose -f docker-compose.dev.yml down
docker compose -f docker-compose.dev.yml build --no-cache
docker compose -f docker-compose.dev.yml up -d

echo "Development environment started!"
echo "Frontend (Vite): http://localhost:8080"
echo "Backend API: http://localhost:3001"
echo ""
echo "To view logs: docker compose -f docker-compose.dev.yml logs -f"
echo "To stop: docker compose -f docker-compose.dev.yml down"