Repository navigation
Expand file tree
/
Copy pathstart.sh
More file actions
49 lines (41 loc) · 1.33 KB
/
Copy pathstart.sh
File metadata and controls
49 lines (41 loc) · 1.33 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
#!/bin/bash
# FamilyLifeHub Quick Start Script
echo "========================================="
echo "FamilyLifeHub - Quick Start"
echo "========================================="
echo ""
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "Error: Docker is not installed. Please install Docker first."
exit 1
fi
if ! command -v docker-compose &> /dev/null; then
echo "Error: Docker Compose is not installed. Please install Docker Compose first."
exit 1
fi
# Create .env file if it doesn't exist
if [ ! -f backend/.env ]; then
echo "Creating backend/.env file..."
cp backend/.env.example backend/.env
echo "Please update backend/.env with your API key!"
fi
# Create frontend .env.local if it doesn't exist
if [ ! -f frontend/.env.local ]; then
echo "Creating frontend/.env.local file..."
cp frontend/.env.local.example frontend/.env.local
fi
echo ""
echo "Starting services with Docker Compose..."
docker-compose up -d
echo ""
echo "========================================="
echo "Services started successfully!"
echo "========================================="
echo ""
echo "Frontend: http://localhost:3000"
echo "Backend API: http://localhost:8000"
echo "API Docs: http://localhost:8000/docs"
echo ""
echo "To view logs: docker-compose logs -f"
echo "To stop: docker-compose down"
echo ""