Skip to content

Demo of using reactphp/ratchet with Laravel for LaravelBA meetup

Notifications You must be signed in to change notification settings

glena/reactdemo

Repository files navigation

Demoreact

Playing with Laravel, ReactPHP & Ratchet. Demo para LaravelBA, meetup group de Laravel en Buenos Aires: http://laravelba.com.ar

Presentación

http://germanlena.com.ar/reactdemo

Video

https://www.youtube.com/watch?v=_avhGaq9-Bg

Links:

Config:

  • app.php: streams_port 7778
  • Add in your hosts file the following line
127.0.0.1 demoreact.app

To run:

This vagrant config is a standard Homestead configuration. It may produce conflicts with other running Homestead VMs.

First, update your home path to point to your key files on the Homestead.yaml file (attributes: keys & authorize).

Run:

vagrant up
vagrant ssh

cd ./Code/demoreact

#probably will need to update composer with
#sudo /usr/local/bin/composer self-update

composer install
php artisan rt:listen

Homestead changes

To run it on a standard Homestead (you may have one running for other projects) you need to add a rule to forward the port used by ReactPHP (port 7778).

Add this line on homestead.rb under "Configure Port Forwarding To The Box" section

config.vm.network "forwarded_port", guest: 7778, host: 7778

Analytics

About

Demo of using reactphp/ratchet with Laravel for LaravelBA meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published