-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.sh
More file actions
68 lines (59 loc) · 1.71 KB
/
start-dev.sh
File metadata and controls
68 lines (59 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
echo "🚀 Starting AutoDataLab Local Development Environment"
echo "=================================================="
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "❌ Error: Docker is not running. Please start Docker Desktop."
exit 1
fi
echo "✅ Docker is running"
# Check if .env file exists
if [ ! -f .env ]; then
echo "📝 Creating .env file from .env.example..."
cp .env.example .env
echo "✅ .env file created"
else
echo "✅ .env file already exists"
fi
# Check if frontend .env exists
if [ ! -f project-frontend/.env ]; then
echo "📝 Creating frontend .env file..."
echo "VITE_API_URL=http://localhost:8000" > project-frontend/.env
echo "✅ Frontend .env file created"
else
echo "✅ Frontend .env file already exists"
fi
echo ""
echo "🏗️ Building Docker containers..."
docker-compose build
echo ""
echo "🚀 Starting services..."
docker-compose up -d
echo ""
echo "⏳ Waiting for services to be ready..."
sleep 10
echo ""
echo "✅ Services are starting!"
echo ""
echo "📊 Service URLs:"
echo " - Backend API: http://localhost:8000"
echo " - API Docs: http://localhost:8000/docs"
echo " - MinIO Console: http://localhost:9001 (minioadmin/minioadmin)"
echo " - PostgreSQL: localhost:5432"
echo " - Redis: localhost:6379"
echo ""
echo "📝 Next steps:"
echo " 1. Start the frontend:"
echo " cd project-frontend"
echo " npm install"
echo " npm run dev"
echo ""
echo " 2. Open http://localhost:5173 in your browser"
echo ""
echo " 3. View logs:"
echo " docker-compose logs -f"
echo ""
echo " 4. Stop services:"
echo " docker-compose down"
echo ""
echo "🎉 Setup complete! Happy coding!"