-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
53 lines (45 loc) · 1.05 KB
/
setup.sh
File metadata and controls
53 lines (45 loc) · 1.05 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
#!/bin/bash
echo "🎵 Spotify Queue App Setup"
echo "=========================="
echo ""
# Check if .env exists
if [ ! -f .env ]; then
echo "Creating .env file from env.example..."
cp env.example .env
echo "✅ Created .env file"
echo "⚠️ Please edit .env and add your Spotify credentials!"
else
echo "✅ .env file already exists"
fi
# Create data directory
if [ ! -d data ]; then
echo "Creating data directory..."
mkdir -p data
echo "✅ Created data directory"
else
echo "✅ Data directory already exists"
fi
# Install root dependencies
echo ""
echo "Installing root dependencies..."
npm install
# Install client dependencies
echo ""
echo "Installing client dependencies..."
cd client
npm install
cd ..
# Install admin dependencies
echo ""
echo "Installing admin dependencies..."
cd admin
npm install
cd ..
echo ""
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env and add your Spotify credentials"
echo "2. Run 'npm run dev' for development"
echo "3. Or run 'docker-compose up' for production"
echo ""