# Local XAMPP Setup

1. Install XAMPP with PHP 8.2+ and MySQL.
2. Install Composer.
3. Copy this folder to `C:\xampp\htdocs\zavvion-events`.
4. Copy `.env.example` to `.env`.
5. Run `composer install` if `vendor/` is absent.
6. Install the local MVP database with the XAMPP PHP binary.
7. Visit `http://localhost/zavvion-events/public`.

```powershell
Set-Location C:\xampp\htdocs\zavvion-events
C:\xampp\php\php.exe bin\install-database --fresh --yes
```

If `php` is not found, add `C:\xampp\php` to PATH or keep running commands with the full PHP path.

Default local demo logins:

- Platform super admin: `admin@zavvion.test` / `ChangeMe123!`
- Platform admin: `platform.admin@zavvion.test` / `ChangeMe123!`
- Organiser owner: `organiser@zavvion.test` / `ChangeMe123!`
- Customer: `customer@zavvion.test` / `ChangeMe123!`

Before a browser walkthrough, run:

```powershell
C:\xampp\php\php.exe bin\check-mvp-smoke --base-url=http://localhost/zavvion-events/public
C:\xampp\php\php.exe bin\check-local-live-run --base-url=http://localhost/zavvion-events/public
```

The smoke and live-run checks verify core database tables, demo users, the published `demo-gala` event, ticket types, checkout launch controls, key public/admin/organiser/scanner pages, upload execution blocking, payment-completion readiness, and the main local XAMPP URLs.

For the current architect handoff and launch rehearsal runbook, see `docs/mvp-handoff.md`.
