-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
41 lines (32 loc) · 1.08 KB
/
start.sh
File metadata and controls
41 lines (32 loc) · 1.08 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
#!/bin/bash
echo "🚀 Starting TechEventRadar - Modern Full-Stack Application"
echo "=================================================="
# 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
# Create necessary directories
mkdir -p backend/instance
mkdir -p frontend/public/images
# Copy static files to frontend public directory
if [ -d "static/images" ]; then
cp -r static/images/* frontend/public/ 2>/dev/null || true
fi
echo "📦 Building and starting services with Docker Compose..."
docker-compose up --build -d
echo "⏳ Waiting for services to be ready..."
sleep 10
echo "✅ Services started successfully!"
echo ""
echo "🌐 Access your application:"
echo " Frontend: http://localhost:3000"
echo " Backend API: http://localhost:8000"
echo " API Documentation: http://localhost:8000/docs"
echo ""
echo "🔧 Admin Login:"
echo " Username: admin"
echo " Password: password"
echo ""
echo "📊 To view logs: docker-compose logs -f"
echo "🛑 To stop: docker-compose down"