-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-and-run.bat
More file actions
59 lines (47 loc) · 1.45 KB
/
Copy pathbuild-and-run.bat
File metadata and controls
59 lines (47 loc) · 1.45 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
@echo off
echo 🚀 Starting Ride Sharing System Build and Run Process...
echo 🛑 Stopping existing containers...
docker-compose down
echo 🧹 Cleaning up existing images...
docker-compose down --rmi all
echo 🔨 Building all services...
docker-compose build --no-cache
if %ERRORLEVEL% neq 0 (
echo ❌ Build failed! Please check the error messages above.
pause
exit /b 1
)
echo 🚀 Starting all services...
docker-compose up -d
if %ERRORLEVEL% neq 0 (
echo ❌ Failed to start services! Please check the error messages above.
pause
exit /b 1
)
echo ⏳ Waiting for services to be ready...
timeout /t 30 /nobreak > nul
echo 📊 Checking service status...
docker-compose ps
echo.
echo ✅ Ride Sharing System is now running!
echo.
echo 📋 Access Information:
echo Frontend: http://localhost:3000
echo User Service: http://localhost:3001
echo Ride Service: http://localhost:3002
echo Payment Service: http://localhost:3003
echo Admin Service: http://localhost:3004
echo MongoDB: localhost:27017
echo.
echo 🔑 Test Accounts:
echo Admin: admin@example.com / admin123
echo Passenger: passenger@example.com / passenger123
echo Driver: driver@example.com / driver123
echo.
echo 📝 Useful Commands:
echo View logs: docker-compose logs -f
echo Stop services: docker-compose down
echo Restart services: docker-compose restart
echo.
echo 🎉 Setup complete! Open http://localhost:3000 in your browser.
pause