Skip to content
Deployment

GitHub Codespaces

Develop BaPlay in the included PHP 8.3 and Node.js 22 Codespace.

Open in Codespaces

BaPlay’s .devcontainer is the reference development environment. It installs PHP 8.3 and extensions, Composer, Node.js 22, SQLite, Redis tools, FFmpeg, project dependencies, database migrations, and production frontend assets.

# postCreateCommand runs automatically
php scripts/check-extensions.php
php artisan migrate
npm run build

# Port 8000 is forwarded
php artisan serve --host=0.0.0.0 --port=8000

Forwarded HTTPS

The post-create script configures TRUSTED_PROXIES=* for the isolated Codespace so Laravel generates HTTPS Vite and route URLs behind GitHub’s proxy. Do not use a wildcard trusted-proxy policy on an untrusted public network.

Open port 8000 from the Codespaces Ports panel. Browser code uses relative API paths, so it never tries to reach localhost on the viewer’s computer.

Development account

The setup creates admin@baplay.local with a development-only password. Change or remove it before sharing persistent environments.