-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
45 lines (38 loc) Β· 1.11 KB
/
start-dev.bat
File metadata and controls
45 lines (38 loc) Β· 1.11 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
@echo off
echo π Starting Equipment Marketplace Development Environment
echo.
REM Check if Docker is running
docker info >nul 2>&1
if errorlevel 1 (
echo β Docker is not running. Please start Docker first.
pause
exit /b 1
)
echo π¦ Installing dependencies...
call npm run install:all
echo π³ Starting Docker services...
docker-compose up -d postgres redis
echo β³ Waiting for database to be ready...
timeout /t 10 /nobreak >nul
echo ποΈ Running database migrations...
cd backend
call npx prisma migrate dev --name init
call npx prisma db seed
cd ..
echo π Starting application services...
docker-compose up -d
echo.
echo β
Equipment Marketplace is starting up!
echo.
echo π± Frontend: http://localhost:3000
echo π§ Backend API: http://localhost:3002
echo πΎ Database: postgresql://equipment_user:equipment_password@localhost:5432/equipment_marketplace
echo ποΈ Redis: redis://localhost:6379
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 π Happy coding!
pause