esoul-cz / template-lsr-inertia
eSoul Lsr (RoadRunner) application with an Inertia and Vue frontend.
Package info
github.com/eSoul-cz/template-lsr-inertia
Type:project
pkg:composer/esoul-cz/template-lsr-inertia
Requires
- php: ^8.5
- ext-curl: *
- ext-fileinfo: *
- ext-gettext: *
- ext-igbinary: *
- ext-mbstring: *
- ext-redis: *
- ext-simplexml: *
- ext-sockets: *
- ext-zip: *
- ext-zlib: *
- dibi/dibi: ^5
- latte/latte: ^3.1
- lsr/caching: ^0.3.6
- lsr/console: ^0.2.1
- lsr/core: ^0.7.0
- lsr/db: ^0.3.16
- lsr/helpers: ^0.3.3
- lsr/inertia: ^0.1.9
- lsr/interfaces: ^0.3.21
- lsr/logging: ^0.3.4
- lsr/orm: ^0.4.0
- lsr/request: ^0.3.11
- lsr/roadrunner: ^0.1.19
- lsr/routing: ^0.5.0
- lsr/scheduler: ^0.1.3
- nette/assets: ^1.0
- nette/http: ^3.3
- nette/neon: ^3.4
- phpdocumentor/reflection-docblock: ^6.0
- spiral/roadrunner: ^2025.1
- spiral/roadrunner-http: ^4.1
- spiral/roadrunner-jobs: ^4.6
- spiral/roadrunner-worker: ^3.6
Requires (Dev)
- brianium/paratest: ^7.24
- esoul-cz/coding-standard: ^0.1
- esoul-cz/guidelines: ^0.3
- infection/infection: ^0.35
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-dibi: ^2.0
- phpstan/phpstan-nette: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^13
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-23 18:18:08 UTC
README
Application on the LSR framework with RoadRunner, Latte, Inertia 3 (Vue 3), Vite 8 and Tailwind 4. This file is the operations README: how to run it, which ports and paths it uses and how to check it. Rules and decisions are in docs/project_guidelines/ and CONTEXT.md.
Requirements
- Docker with Compose v2: the development stack runs the application, NGINX and MariaDB.
- For tools outside the container: PHP 8.5 with the extensions of
composer.jsonand Node 26 with the pnpm version pinned inpackage.json(npm install --global pnpm@<version>).
Setup
cp .env.example .env # optional: the dev compose file sets the application variables itself
docker compose up --build
The first start runs composer install and pnpm install inside the app container and installs the database schema (php bin/console app:install). The template ships no lockfiles: run composer install and pnpm install once on the host (or docker compose exec app composer install and pnpm install) and commit composer.lock and pnpm-lock.yaml; the image build needs both.
Ports
| Port | What | Reached by |
|---|---|---|
| 80 | NGINX, FastCGI to RoadRunner (the production path) | browser: http://localhost |
| 5173 | Vite dev server (HMR) through NGINX | browser |
| 9000 | RoadRunner FastCGI | NGINX (the host NGINX in production) |
| 8001 | RoadRunner HTTP | container health check, docker/http-smoke.php |
| 6001, 2112, 2114 | RoadRunner RPC, metrics, status | inside the container network only |
Commands
composer test # PHPUnit, debugger and coverage driver off composer test:parallel # the same with paratest composer test:coverage # PHPUnit with coverage (Xdebug) composer phpstan # level 10, no baseline composer cs # code style check (composer cs:fix applies it) composer mutation # Infection on the lines changed against main (local, never a CI gate) pnpm run eslint # also: eslint:fix, format:check, format, tsc, test, build php bin/console list # application console
Production image and its smoke test (needs APP_IMAGE and the database of the CI compose file):
docker build -f docker/Dockerfile --target production -t lsr-app .
APP_IMAGE=lsr-app docker compose -f docker-compose.ci.yml up -d --wait
APP_IMAGE=lsr-app docker compose -f docker-compose.ci.yml --profile verification run --rm http-smoke
docker compose -f docker-compose.ci.yml down -v
Persistent paths
In a deployed stack these are bind-mounted from the stack's run directory, next to .env, services.local.neon and .rr.yaml; the container filesystem is disposable and the infrastructure backups cover the run directory.
| Path | Holds |
|---|---|
./upload |
user uploads (UPLOAD_DIR changes it) |
./logs |
application and Tracy logs |
./temp |
caches, generated DI container, routes and sessions |
./temp/queue/tasks.db |
the RoadRunner boltdb jobs queue (.rr.yaml): queued tasks survive a restart |
temp/ is cache by convention, with one exception: never delete temp/queue/ together with the caches. cache:clean, the other *:cache:clean commands and docker/prepare-runtime.sh leave it alone; a manual rm -rf temp/* does not, and drops every queued task.
Time
The application clock is UTC: PHP runs on UTC (APP_TIMEZONE in include/constants.php) and the database session is set to +00:00 on every connection (config/di/environment.php). The business time zone is named in CONTEXT.md and applied only where a date is shown or a calendar boundary is cut.
Troubleshooting
ERR_PNPM_IGNORED_BUILDSon install: a new dependency has an install script; review it and list it inallowBuildsofpnpm-workspace.yaml(pnpm approve-builds).- A page shows no styles or scripts in development: Vite must be running (
docker compose logs app) and port 5173 reachable. 419on a form post: the request must come from the application's own browser client and itsOriginmust match the host NGINX passed inHTTP_HOST(andHTTPS);X-Forwarded-*headers are not used.- The
appcontainer is unhealthy:GET /upanswers503while the database connection fails; check theDB_*variables and thedbservice.