-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-setup.sh
More file actions
67 lines (55 loc) · 1.5 KB
/
dev-setup.sh
File metadata and controls
67 lines (55 loc) · 1.5 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
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
echo "========================================"
echo " Integration Gateway - Development Setup"
echo "========================================"
echo
echo "Setting up development environment..."
echo
echo "1. Checking prerequisites..."
# Check .NET SDK
if ! command -v dotnet &> /dev/null; then
echo "ERROR: .NET 8 SDK not found. Please install .NET 8 SDK first."
echo "Download from: https://dotnet.microsoft.com/download/dotnet/8.0"
exit 1
fi
# Check Docker
if ! command -v docker &> /dev/null; then
echo "ERROR: Docker not found. Please install Docker first."
echo "Visit: https://docs.docker.com/get-docker/"
exit 1
fi
echo "✓ .NET 8 SDK found"
echo "✓ Docker found"
echo
echo "2. Starting infrastructure services only..."
docker-compose up -d postgres redis
echo
echo "3. Waiting for services to be ready..."
sleep 15
echo
echo "4. Restoring NuGet packages..."
dotnet restore
echo
echo "5. Building solution..."
dotnet build
echo
echo "6. Running database migrations (if any)..."
# Add migration commands here when implemented
# dotnet ef database update --project src/IntegrationGateway.Infrastructure
echo
echo "7. Development environment ready!"
echo
echo "Infrastructure services running:"
echo "- PostgreSQL: localhost:5432"
echo "- Redis: localhost:6379"
echo
echo "To start the API in development mode:"
echo "cd src/IntegrationGateway.Api"
echo "dotnet run"
echo
echo "To run tests:"
echo "dotnet test"
echo
echo "To stop infrastructure:"
echo "docker-compose down"
echo