-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·48 lines (39 loc) · 1.38 KB
/
setup.sh
File metadata and controls
executable file
·48 lines (39 loc) · 1.38 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
#!/bin/bash
# Digital Wallet Project Setup Script
# Usage: ./scripts/setup.sh
set -e
echo "======================================"
echo " Digital Wallet Project Setup"
echo "======================================"
echo ""
# Activate virtual environment
echo "📦 Activating virtual environment..."
source .env_digital_wallet/bin/activate
# Install production dependencies
echo "📦 Installing production dependencies..."
pip install -r requirements.txt
# Install development dependencies
echo "📦 Installing development dependencies..."
pip install -r requirements-dev.txt
# Install pre-commit hooks
echo "🔧 Installing pre-commit hooks..."
pre-commit install
# Run database migrations
echo "🗄️ Running database migrations..."
python manage.py migrate --settings=core.settings.dev
# Create .env from .env.example if it doesn't exist
if [ ! -f .env ]; then
echo "📝 Creating .env from .env.example..."
cp .env.example .env
echo "⚠️ Please update .env with your configuration!"
fi
echo ""
echo "======================================"
echo " ✅ Setup Complete!"
echo "======================================"
echo ""
echo "Next steps:"
echo " 1. Update .env with your configuration"
echo " 2. Create superuser: python manage.py createsuperuser --settings=core.settings.dev"
echo " 3. Run server: python manage.py runserver 8500 --settings=core.settings.dev"
echo ""