onbekende flag 4
This commit is contained in:
16
README.md
16
README.md
@@ -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 Server‑Sent 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):
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user