-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-services.bat
More file actions
52 lines (45 loc) · 1.65 KB
/
start-services.bat
File metadata and controls
52 lines (45 loc) · 1.65 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
@echo off
echo Starting Spring Cloud Microservices...
echo.
echo Step 1: Starting Infrastructure Services...
docker-compose up -d postgres mongodb redis rabbitmq zipkin prometheus grafana
echo Waiting for infrastructure services to be ready...
timeout /t 30 /nobreak > nul
echo.
echo Step 2: Building all services...
call mvn clean package -DskipTests
echo.
echo Step 3: Starting Eureka Server...
start "Eureka Server" cmd /k "cd eureka-server && mvn spring-boot:run"
echo Waiting for Eureka Server to start...
timeout /t 45 /nobreak > nul
echo.
echo Step 4: Starting API Gateway...
start "API Gateway" cmd /k "cd api-gateway && mvn spring-boot:run"
timeout /t 30 /nobreak > nul
echo.
echo Step 5: Starting Business Services...
start "User Service" cmd /k "cd user-service && mvn spring-boot:run"
start "Order Service" cmd /k "cd order-service && mvn spring-boot:run"
start "Notification Service" cmd /k "cd notification-service && mvn spring-boot:run"
timeout /t 45 /nobreak > nul
echo.
echo Step 6: Starting Monitoring Services...
start "Admin Dashboard" cmd /k "cd admin-dashboard && mvn spring-boot:run"
timeout /t 30 /nobreak > nul
echo.
echo ========================================
echo All services started successfully!
echo ========================================
echo.
echo Service URLs:
echo - Eureka Dashboard: http://localhost:8761
echo - API Gateway: http://localhost:8080
echo - Admin Dashboard: http://localhost:8090
echo - RabbitMQ Management: http://localhost:15672 (admin/admin123)
echo - Grafana: http://localhost:3000 (admin/admin123)
echo - Prometheus: http://localhost:9090
echo - Zipkin: http://localhost:9411
echo.
echo Press any key to exit...
pause > nul