A realtime chat sample written in Laravel 4.2 + Redis + Node.js + Socket.io.
Um exemplo de chat realtime escrito em Laravel 4.2 + Redis Node.js + Socket.io (instruções somente em inglês).
Live example available at: http://chat.guilhermeslk.com.br :)
##Requirements Laravel 4.2 MySQL Redis Node.js NPM
##How to install
$ git clone https://github.com/guilhermeslk/laravel-realtime-chat.git
$ cd laravel-realtime-chat
$ composer install
Edit your database.php to match your local database settings.
...
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => '<HOST>',
'database' => '<DATABASE>',
'username' => '<USERNAME>',
'password' => '<PASSWORD>',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
...
Run these commands to create and populate your database:
$ php artisan migrate
$ php artisan db:seed
CD into the nodejs folder and run npm install in order to have the all dependencies installed.
$ cd nodejs
$ npm install
$ cd ..
$ php artisan serve
$ redis-server
$ ./realtime.sh
That's it! Now you should be ready to go!