onbekende flag 4

This commit is contained in:
Frank
2026-01-11 15:28:40 +01:00
parent 3b3cb69aa7
commit 09f9abcfb8
6 changed files with 25 additions and 25 deletions

View File

@@ -16,14 +16,14 @@ This repository contains a Symfony 7.3 (PHP >= 8.5.1) application for a collabor
6. Run tests: `vendor/bin/phpunit`
- With Docker:
1. From `docker/`: `docker compose up -d`
1. `docker-compose up -d`
2. Install vendors inside the PHP container:
- `docker compose exec php bash`
- `docker-compose exec php bash`
- `composer install`
3. Initialize DB:
- `php bin/console doctrine:database:create --if-not-exists`
- `php bin/console doctrine:migrations:migrate -n`
4. App is at https://localhost:8443 (self-signed certificate)
4. App is at http://localhost:8080
## Email (Mailpit in dev, SendGrid for prod)
- Dev: a `mailer` service (Mailpit) runs in Docker.
@@ -81,17 +81,17 @@ See doc/CONTRIBUTING.md for code style and more details.
We use a Mercure hub (Docker service) to push server updates to browsers via ServerSent Events (SSE).
Quick start (dev):
1. Start Docker stack from `docker/`:
1. Start Docker stack:
```
docker compose up -d
docker-compose up -d
```
This starts `mercure` at http://localhost:8090 and the app at https://localhost:8443.
This starts `mercure` at http://localhost:8090 and the app at http://localhost:8080.
2. Install PHP deps inside the PHP container if you haven't yet:
```
docker compose exec php bash
docker-compose exec php bash
composer install
```
3. Open the Game Hub page in your browser: https://localhost:8443/game
3. Open the Game Hub page in your browser: http://localhost:8080/game
- The page subscribes to a demo topic and logs messages in the console.
4. Publish a test update (in the PHP container):
```