-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
executable file
Β·42 lines (35 loc) Β· 1.32 KB
/
setup-dev.sh
File metadata and controls
executable file
Β·42 lines (35 loc) Β· 1.32 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
#!/bin/bash
# EmptyMug Website Development Setup Script
echo "π Setting up EmptyMug Website Development Environment..."
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "β Docker is not installed. Please install Docker first."
exit 1
fi
# Check if Docker Compose is installed
if ! command -v docker-compose &> /dev/null; then
echo "β Docker Compose is not installed. Please install Docker Compose first."
exit 1
fi
# Copy environment file if it doesn't exist
if [ ! -f backend/.env ]; then
echo "π Creating environment file..."
cp backend/.env.example backend/.env
echo "β
Environment file created. Please edit backend/.env with your email configuration."
else
echo "β
Environment file already exists."
fi
# Build and start the development environment
echo "ποΈ Building and starting development containers..."
docker-compose -f docker-compose.dev.yml up --build -d
echo ""
echo "π Development environment is ready!"
echo ""
echo "π± Frontend: http://localhost:3000"
echo "π§ Backend API: http://localhost:8000"
echo "π API Documentation: http://localhost:8000/docs"
echo ""
echo "π Don't forget to configure your email settings in backend/.env"
echo ""
echo "To stop the development environment, run:"
echo "docker-compose -f docker-compose.dev.yml down"