Set up Pulse on your computer

The goal is a local practice copy: a working admin login and an API response. This page uses Docker, the team's local development setup. Run these commands on your computer in a new project folder.

1. Get the tools

Install Docker Desktop and Git. Open Docker Desktop and leave it running. Use a code editor such as the one you already learn with.

Open a terminal and check:

docker --version
docker compose version
git --version

Each command should print a version. If it says “command not found”, install or reopen the relevant tool before continuing. Docker runs PHP, MySQL and the frontend for this path; you do not need to install PHP on your computer first.

2. Get Pulse

Get Pulse Engine from its PBBG Vault marketplace page. Download and extract the ZIP, then open a terminal in the folder containing docker-compose.yml, backend/ and frontend/. If you already have a local copy, open that folder and check git status before updating.

3. Start the application

From the project root:

docker compose up -d --build

The first run downloads and builds dependencies, so give it time. -d means the containers keep running after the command returns.

::: tip Already running another Pulse project, or a port is taken? Container names are not fixed: Compose names them after this folder (for example my-game-backend-1), so two Pulse projects can run side by side. Only the host ports can clash. The stack publishes two ports, both on 127.0.0.1 so nothing is reachable from other machines: the game (8010) and realtime events (6001). MySQL and Redis stay inside Docker. Copy .env.example to .env in the project root (or edit the existing one) and set new ports before the first start, for example:

PULSE_BACKEND_PORT=8110
PULSE_REVERB_PORT=6101

The first start writes these ports into backend/.env. If you move a port later, also update APP_URL, FRONTEND_URL, CORS_ALLOWED_ORIGINS and SANCTUM_STATEFUL_DOMAINS in backend/.env. Always run docker compose ... commands from this project's folder so they reach this project's containers. :::

::: tip Developing the engine itself? Copy docker-compose.override.yml.example to docker-compose.override.yml. It adds the live-reloading player server on http://localhost:5180, phpMyAdmin on 8086, debug output and loopback MySQL/Redis ports for local tools. Never use it on a public server. :::

::: warning Local by default The stack is set up for your own machine. Every published port listens on 127.0.0.1 only, Laravel debug pages are off, MySQL has no known root password (the app uses the laravelcp user), and phpMyAdmin does not start unless you ask for it with docker compose --profile tools up -d phpmyadmin. To turn debug pages on, set APP_DEBUG=1 in the root .env. To reach the stack from a phone or another computer, set PULSE_BIND_ADDRESS=0.0.0.0, but only on a network you trust, because the database and Redis ports are published as well. The dev frontend accepts only local host names; add others, such as a tunnel's, with PULSE_VITE_ALLOWED_HOSTS. :::

Check progress:

docker compose ps
docker compose logs --tail=80 backend

The backend startup script prepares the environment and attempts the first installation. Look for successful installation in the logs. “Running” alone does not prove installation finished.

If the logs say the database was not ready and installation was skipped, wait for MySQL to be healthy, then run:

docker compose exec backend php artisan app:install

Do not add --force just to check whether the app works; it reruns installation. If installation reports an error, use the troubleshooting page.

4. Check it works

Open these addresses in your browser:

Address What you should see
http://localhost:8010 The player site (your game)
http://localhost:8010/admin/ The admin login or admin application
http://localhost:8010/api/plugins/enabled A JSON response listing enabled plugins. On a fresh install of the engine download the list is empty: the download ships no plugins. Plugins, kits and asset packs come from the PBBG Vault marketplace

JSON is text containing structured data. Seeing it at the API address is expected; it is not meant to look like a game screen.

For a fresh local Docker install, the username is admin. There is no fixed password: unless you set ADMIN_PASSWORD in the root .env, the installer generates a random one and prints it once in the backend container's log. Find it with docker compose logs backend | grep -A6 "SHOWN ONCE". If the log is gone (for example after the container was recreated), set a new one with docker compose exec backend php artisan user:reset-password admin. If this is an existing database or you changed the installer options, use those credentials instead. You must change the password at first login.

For local development you can also seed a test player: set SEED_DEVELOPMENT_USERS=true in backend/.env before seeding. TestUserSeeder then creates testuser with the password in DEV_TEST_USER_PASSWORD, or, when that is empty, a random password printed once. The engine never seeds an account with a fixed password.

Checkpoint: you can open the admin and the enabled-plugins API returns JSON. You are ready for the first tutorial.

Optional: start from the Mafia Underworld game

The engine release does not contain the Mafia Underworld kit or its gameplay plugins. They come from the PBBG Vault marketplace, signed and verified on download: kit:install mafia-underworld --from-marketplace downloads the kit itself, then its plugins.

The kit is a paid product. Mafia Underworld (USD 199) is on sale in the PBBG Vault marketplace, and its licence grants the 13 paid plugins in its recipe (chat and leaderboards are free). The commands below complete only on an install that holds those licences. Without the licences, go on to step 5.

  1. Buy the kit at https://pbbgvault.com/marketplace/mafia-underworld.
  2. Connect this install to your PBBG Vault account, so the engine can use your licences. On pbbgvault.com, open Account > Engine connections and create a connection token. In this engine, open Admin > Plugins > Marketplace, paste the token as Account API token under Marketplace connection, and save. (On a server you can set MARKETPLACE_API_TOKEN in backend/.env instead.)
  3. Install the kit from the command line:
docker compose exec -u www-data backend php artisan kit:install mafia-underworld --from-marketplace --dry-run
docker compose exec -u www-data backend php artisan kit:install mafia-underworld --from-marketplace

-u www-data runs the command as the web server's user, so the files it installs belong to the same user as the admin's Marketplace and Game kits screens. If you run an install command without it (as root), the engine hands the installed files back to that user when the command finishes.

The dry run downloads and checks the kit in a temporary folder, lists what will be installed, and deletes the download again; nothing is installed. Without a licence for the kit, it stops there with the kit's marketplace link and steps 1 and 2. A paid plugin your account holds no licence for is listed as Paid: needs a licence, with its marketplace link, and the install stops before downloading any plugin; the message names every paid plugin that is missing a licence and repeats steps 1 and 2. Once the kit is on your install (in backend/storage/kits/mafia-underworld), Admin > Game kits and php artisan kit:list list it too.

There is nothing to build. The kit carries its player pages prebuilt; the install publishes them under backend/public/kits/mafia-underworld/ with their SHA-384 pins, and the player at http://localhost:8010 loads them on its next page load.

If any step fails, the install stops, unregisters the plugins it had added and removes the kit files it downloaded, so you can simply run it again; database tables those plugins created may remain and are reused by the retry.

5. Know where to type future commands

When a tutorial says “from the project root”, use the folder with docker-compose.yml. For example:

docker compose exec backend php artisan hub:list

This means “run Laravel's plugin-list command inside the backend container”. hub:list shows what your own installation knows about its plugins.

Stop and come back later

From the project root:

docker compose stop

Start the existing containers again with:

docker compose start

Your database remains stored. Avoid reset commands such as migrate:fresh while learning unless you intentionally want to erase that practice database.

Working without Docker

The repository also includes start-dev.sh and start-dev.ps1 for native PHP/SQLite development. They require PHP 8.3+, Composer and a supported Node version (20.19+ in the Node 20 line, or 22.12+). They modify backend/.env for SQLite, so use a separate practice checkout rather than switching an existing Docker database configuration. See the scripts before choosing that path.

Developing on Windows with WSL2

Keep the checkout inside Ubuntu (for example ~/code/pulse-engine), not on C:. Docker bind mounts and file watching are slow and unreliable across the Windows boundary.

  1. Install WSL with Ubuntu (wsl --install -d Ubuntu), and Docker Desktop with Settings → Resources → WSL integration turned on for Ubuntu. In Ubuntu, add yourself to the docker group (sudo usermod -aG docker $USER), then open a new shell.
  2. Create a normal Ubuntu user and make it the default in /etc/wsl.conf ([user] default=<name>). Then run wsl --shutdown once. Until WSL restarts, files written from Windows through \\wsl.localhost\Ubuntu\... are owned by root, and Git then refuses to replace them during a rebase.
  3. Install Node with nvm, plus PHP and Composer, inside Ubuntu. VS Code connects with the WSL extension, or from another machine with Remote-SSH to Ubuntu's SSH server. That server needs its own port (for example 2222), because Windows' OpenSSH already holds 22.

Browser tools under WSL. This is only needed for the browser (Playwright) checks. The pinned Blender, KTX encoder and GPU-backed measurement tooling for the open world belong to the separate pulse-3d extension.

  • Playwright Chromium: Playwright may not list a brand-new Ubuntu release. Install with PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 npx playwright install chromium, then add its libraries with apt (libnss3, libnspr4, libasound2t64 and others ldd reports missing).

Quoting trap. wsl.exe -- bash -c '...' passes the command through another shell, so $variables and $(...) can expand in the wrong place. Put anything non-trivial in a script file and run wsl.exe -- bash /mnt/c/.../script.sh.

Running this guide locally

To edit or browse the documentation separately, install a supported Node version, then run from the project root:

cd docs
npm ci
npm run dev -- --host 127.0.0.1 --port 5173

Open http://localhost:5173. This is the documentation site; it is separate from the game frontend on port 5180.

Source checked: docker-compose.yml, backend/docker-entrypoint.sh, backend/app/Core/Console/Commands/InstallCommand.php, frontend/package.json.

Next: Your first plugin →