Niet weggooien van images 2
This commit is contained in:
14
README.md
14
README.md
@@ -16,9 +16,9 @@ This repository contains a Symfony 7.3 (PHP >= 8.5.1) application for a collabor
|
||||
6. Run tests: `vendor/bin/phpunit`
|
||||
|
||||
- With Docker:
|
||||
1. `docker-compose up -d`
|
||||
1. `cd docker && 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`
|
||||
@@ -83,20 +83,14 @@ We use a Mercure hub (Docker service) to push server updates to browsers via Ser
|
||||
Quick start (dev):
|
||||
1. Start Docker stack:
|
||||
```
|
||||
docker-compose up -d
|
||||
cd docker && docker compose up -d
|
||||
```
|
||||
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: 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):
|
||||
```
|
||||
php bin/console app:mercure:publish
|
||||
```
|
||||
You should see a console log like `[Mercure] Update received: { ... }` on the Game Hub page.
|
||||
|
||||
Configuration:
|
||||
|
||||
Reference in New Issue
Block a user