To use the application please follow this procedure:
-
Install required packages:
- For Composer
composer install
- For npm
npm install
- Install Redis server. Visit the Redis Website. (This is optional if you use Redis and Socket.io).
- For Composer
-
Run Database seed to seed users
php artisan db:seed
. Seedatabase\seeds\UserSeeder
for credentials. -
Edit
.env
file-
Change broadcast driver,
- Pusher use
BROADCAST_DRIVER=pusher
or - Redis and Socket.io use
BROADCAST_DRIVER=redis
- Pusher use
-
For Pusher add the following from your pusher account
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=
-
-
Edit
recources\js\bootstrap.js
file- Uncomment the
laravel-echo
section. Either using it with socket.io or pusher. - Run
npm run dev
to compile the js files to\public
folder.
- Uncomment the
-
To run:
- Start artisan server
php arisan serve
- Start laravel echo server
laravel-echo-server start
- Start laravel queue
php artisan queue:work --queue=messaging
- When using Redis and Socket.io
Listen on Redis-cli (optional)
redis-cli
Then runMONITOR
on the redis-cli i.e$ redis-cli 127.0.0.1:6379> MONITOR OK
- Start artisan server