This page helps you get the emulator running on your machine. If you only want to learn how to use the web UI, go directly to the User guide.

Development only: Open POS Printer Emulator is for local development, QA, and integration testing. It is not recommended for production deployment.

curl -fsSL https://raw.githubusercontent.com/darkterminal/open-pos-printer-emulator/main/scripts/install.sh | bash

The script clones the repo, prepares .env files, starts Kiri/Docker Compose, installs dependencies, generates app key, and runs migrations/seeders.

Useful options:

OPPE_ENGINE=docker OPPE_DIR=./open-pos-printer-emulator \
  curl -fsSL https://raw.githubusercontent.com/darkterminal/open-pos-printer-emulator/main/scripts/install.sh | bash

Option B: Manual Setup

Requirements

  • Kiri (default) or Docker Compose
  • Ports available: 8080 (web), 8081 (Reverb), 9100 (TCP listener), 3001 (sidecar), 5432 (PostgreSQL)
  • nc (netcat) for the quick TCP smoke test (optional)

1. Prepare Environment Files

cp apps/web/.env.example apps/web/.env
cp apps/sidecar/.env.example apps/sidecar/.env

2. Start the Stack

Kiri (default):

make up

Docker Compose:

make up ENGINE=docker

Wait until services are up. You can check with:

make ps
# or: make ps ENGINE=docker

3. Initialize the Laravel App

Run these commands using the same engine you started with.

Kiri:

kiri compose exec web composer install
kiri compose exec web php artisan key:generate
kiri compose exec web php artisan migrate --seed

Docker Compose:

docker compose exec web composer install
docker compose exec web php artisan key:generate
docker compose exec web php artisan migrate --seed

Open the Web UI

Open http://localhost:8080/login in your browser.

Default local credentials:

  • Email: admin@example.com
  • Password: password

Login page

Send Your First Test Print

Send a simple ESC/POS payload to the default TCP listener on port 9100:

printf "\x1B\x40Hello ESC/POS\n\x1D\x56\x00" | nc 127.0.0.1 9100

Then open the Jobs page (http://localhost:8080/jobs). You should see a new job in the left panel and the receipt in the center preview.

flowchart LR A["Your terminal / POS"] -->|"TCP 9100"| B["Sidecar listener"] B --> C["Laravel ingest + parse"] C --> D["Jobs UI
Receipt Preview"]

Jobs workspace with receipt preview

Where to Go Next

Useful Commands

make up          # Start stack (Kiri default)
make ps          # Check service status
make logs        # Follow logs
make test        # Run tests
make lint        # Run lint/format checks
make down        # Stop stack

For Docker Compose, append ENGINE=docker to make commands, e.g. make up ENGINE=docker.