-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-local-dev.sh
More file actions
40 lines (34 loc) · 1.85 KB
/
setup-local-dev.sh
File metadata and controls
40 lines (34 loc) · 1.85 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
#!/bin/bash
# Quick Setup Guide - Bash Alternative (for Mac/Linux users)
# For Windows: Use setup-local-dev.ps1 or follow manual steps below
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ PostgreSQL Auth Fix - Setup Guide ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
# Step 1: Start Docker
echo "[Step 1] Starting Docker containers..."
docker-compose up -d
echo "[Step 2] Waiting for PostgreSQL to be healthy..."
sleep 10
echo "[Step 3] Verifying PostgreSQL connection..."
docker-compose exec -T postgres-primary psql -U postgres -d market_db -c "SELECT 1"
echo ""
echo "✅ Docker setup complete!"
echo ""
echo "════════════════════════════════════════════════════════════════"
echo "NEXT: Configure IntelliJ"
echo "════════════════════════════════════════════════════════════════"
echo ""
echo "1. In IntelliJ: Click the dropdown in top-right (run config name)"
echo "2. Select: 'Edit Configurations...'"
echo "3. Find your Spring Boot configuration"
echo "4. Go to 'Environment variables' field"
echo "5. Add:"
echo ""
echo " SPRING_PROFILES_ACTIVE=local;POSTGRES_USER=postgres;POSTGRES_PASSWORD=password"
echo ""
echo "6. Click Apply → OK"
echo "7. Click Run ▶ button"
echo ""
echo "✅ Application should start without authentication errors!"
echo ""