Files
TimeTracker/scripts/start-local-test.ps1
Dries Peeters 7486037307 feat: local SQLite test env, UI fixes, and DB migrations
- UI/UX: Refine layouts and responsive styles; fix task and timer views; update
  shared components and dashboard templates
  - Updates across `app/templates/**`, `templates/**`, `app/static/base.css`,
    and `app/static/mobile.css`
- Backend: Route cleanups and minor fixes for admin, auth, invoices, and timer
  - Touches `app/routes/admin.py`, `app/routes/auth.py`, `app/routes/api.py`,
    `app/routes/invoices.py`, `app/routes/timer.py`
- DevOps: Improve Docker setup and add local testing workflow
  - Update `Dockerfile`, `docker/start-fixed.py`
  - Add `docker-compose.local-test.yml`, `.env.local-test`, start scripts
- Docs: Update `README.md` and add `docs/LOCAL_TESTING_WITH_SQLITE.md`
- Utilities: Adjust CLI and PDF generator behavior

Database (Alembic) migrations:
- 005_add_missing_columns.py
- 006_add_logo_and_task_timestamps.py
- 007_add_invoice_and_more_settings_columns.py
- 008_align_invoices_and_settings_more.py
- 009_add_invoice_created_by.py
- 010_enforce_single_active_timer.py

BREAKING CHANGE: Only one active timer per user is now enforced.

Note: Apply database migrations after deploy (e.g., `alembic upgrade head`).
2025-09-10 11:49:49 +02:00

32 lines
1010 B
PowerShell

# PowerShell script to start TimeTracker Local Test Environment with SQLite
Write-Host "Starting TimeTracker Local Test Environment with SQLite..." -ForegroundColor Green
Write-Host ""
# Check if docker-compose is available
try {
$null = docker-compose --version
} catch {
Write-Host "Error: docker-compose is not installed or not in PATH" -ForegroundColor Red
Write-Host "Please install Docker Desktop or Docker Compose" -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1
}
# Check if Docker is running
try {
$null = docker info
} catch {
Write-Host "Error: Docker is not running" -ForegroundColor Red
Write-Host "Please start Docker Desktop" -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1
}
Write-Host "Building and starting containers..." -ForegroundColor Cyan
docker-compose -f docker-compose.local-test.yml up --build
Write-Host ""
Write-Host "Local test environment stopped." -ForegroundColor Green
Read-Host "Press Enter to exit"