Skip to content

a little demo about how to create a chat system using symfony and mercure

Notifications You must be signed in to change notification settings

souhaiebtar/chat_with_mercure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

  1. start by cloning the repo than install php dependencies

    composer install
  2. 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
  3. 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

original code 1

About

a little demo about how to create a chat system using symfony and mercure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages