Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.9 KB

File metadata and controls

48 lines (32 loc) · 1.9 KB

Serial Number Bundle – Demos

Demos for Composer package nowo-tech/serial-number-bundle (source on GitHub) on Symfony 7 and 8.

Demos

Demo Symfony Port (default in .env.example)
symfony7 7.0 8007
symfony8 8.0 8008

Quick start (from bundle root)

# Start Symfony 8 demo
make -C demo up-symfony8

# Start Symfony 7 demo
make -C demo up-symfony7

Then open http://localhost:<PORT> (e.g. http://localhost:8008 for Symfony 8, or the PORT in the demo’s .env).

Path repository

Each demo mounts the bundle root at /var/serial-number-bundle in the container. The demo’s composer.json uses a path repository pointing there, so you must run make up-* (or docker-compose up) from the bundle repository root so that ../.. resolves to the bundle.

Commands (from bundle root)

  • make -C demo up-symfony7 / make -C demo up-symfony8 – start a demo
  • make -C demo down DEMO=symfony8 – stop (use DEMO=symfony7 or symfony8)
  • make -C demo update-bundle DEMO=symfony8 – update the bundle from path and clear cache
  • make -C demo test DEMO=symfony8 – run that demo’s tests
  • make -C demo verify-all – start both demos and check HTTP 200
  • make -C demo release-verify – used by root make release-check: up → healthcheck → down per demo

From a demo directory (e.g. demo/symfony8):

  • make up / make down / make install / make test / make update-bundle / make shell

Stack

Each demo includes:

  • Symfony Framework, Twig, Web Profiler
  • nowo-tech/serial-number-bundle (from path)
  • nowo-tech/twig-inspector-bundle (dev/test; §2.3.1)
  • FrankenPHP (Caddyfile :80, worker)