-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-setup.bat
More file actions
68 lines (58 loc) · 1.53 KB
/
dev-setup.bat
File metadata and controls
68 lines (58 loc) · 1.53 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
68
@echo off
echo ========================================
echo Integration Gateway - Development Setup
echo ========================================
echo.
echo Setting up development environment...
echo.
echo 1. Checking prerequisites...
dotnet --version >nul 2>&1
if errorlevel 1 (
echo ERROR: .NET 8 SDK not found. Please install .NET 8 SDK first.
echo Download from: https://dotnet.microsoft.com/download/dotnet/8.0
pause
exit /b 1
)
docker --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Docker not found. Please install Docker Desktop first.
echo Download from: https://www.docker.com/products/docker-desktop
pause
exit /b 1
)
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...
timeout /t 15 /nobreak > nul
echo.
echo 4. Restoring NuGet packages...
dotnet restore
echo.
echo 5. Building solution...
dotnet build
echo.
echo 6. Running database migrations (if any)...
REM Add migration commands here when implemented
REM 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.
pause