-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
60 lines (52 loc) · 1.57 KB
/
Copy pathstart.bat
File metadata and controls
60 lines (52 loc) · 1.57 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
REM Net Control by K4HEF - Windows Startup Script
echo ================================================
echo Net Control by K4HEF - Setup ^& Start
echo ================================================
echo.
REM Check if Docker is installed
docker --version >nul 2>&1
if errorlevel 1 (
echo ❌ Docker is not installed!
echo Please install Docker Desktop from: https://www.docker.com/products/docker-desktop/
pause
exit /b 1
)
echo ✅ Docker is installed
echo.
REM Check if .env file exists
if not exist .env (
echo 📝 Creating .env file...
echo JWT_SECRET=NetControl2024SecureKeyForYorkCountyAmateurRadioSociety_ChangeInProduction > .env
echo ✅ .env file created
echo ⚠️ Remember to change JWT_SECRET in production!
) else (
echo ✅ .env file already exists
)
echo.
echo 🚀 Starting Net Control application...
echo.
docker-compose up -d
echo.
echo ================================================
echo ✅ Net Control is starting up!
echo ================================================
echo.
echo The application will be available shortly at:
echo 👉 http://localhost
echo.
echo First time setup:
echo 1. Wait 30 seconds for services to fully start
echo 2. Open http://localhost in your browser
echo 3. Click 'Register' to create your account
echo 4. Go to Settings to configure your QRZ API key
echo.
echo Useful commands:
echo Stop: docker-compose down
echo Logs: docker-compose logs -f
echo Status: docker-compose ps
echo.
echo 📻 73 de K4HEF
echo ================================================
echo.
pause