-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
54 lines (44 loc) · 1.43 KB
/
setup.sh
File metadata and controls
54 lines (44 loc) · 1.43 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
#!/bin/bash
# Airport Code Guessing Game - Setup Script
# This script sets up the project for deployment and development
echo "🛫 Setting up Airport Code Guessing Game..."
# Create necessary directories
echo "📁 Creating directories..."
mkdir -p static
mkdir -p templates
mkdir -p data
# Create a simple icon (placeholder)
echo "🎨 Creating placeholder icon..."
cat > static/icon.png << 'EOF'
# This is a placeholder. You need to create a proper 192x192 PNG icon.
# See static/ICON.md for instructions.
EOF
# Set up virtual environment
echo "🐍 Setting up Python virtual environment..."
python3 -m venv venv
source venv/bin/activate
# Install dependencies
echo "📦 Installing dependencies..."
pip install -r requirements.txt
# Create data directory
echo "📊 Setting up data directory..."
touch data/.gitkeep
# Copy environment template
echo "⚙️ Setting up environment..."
cp .env.example .env
# Initialize git (if not already initialized)
if [ ! -d ".git" ]; then
echo "📚 Initializing git repository..."
git init
git add .
git commit -m "Initial commit - Airport Code Guessing Game"
fi
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env and add your Pixabay API key"
echo "2. Create an icon at static/icon.png (see static/ICON.md)"
echo "3. Run 'python app.py' to start the development server"
echo "4. Push to GitHub and deploy to your preferred platform"
echo ""
echo "Happy coding! ✈️"