-
start by cloning the repo than install php dependencies
composer install
-
Start mercure using this command (docker used):
docker run -e JWT_KEY='!ChangeMe!' \ -e CORS_ALLOWED_ORIGINS="*" -e PUBLISH_ALLOWED_ORIGINS='*' \ -e DEBUG=1 -p 9090:80 dunglas/mercure:v0.10.2
-
Run the symfony 4 app using:
php -S localhost:8000 -t public
N.B: Open the chat url
http://localhost:8000/chat
in two different browsers, also you can open http://localhost:8000/client to view all old message