A realtime chat app built with Laravel 5.7, vue.js , redise and socket-io. We can send text messages through this app.
- pbulic chat
- room chat
- private chat
- notifications
- Clone repo / download project.
- Open cmd and go to your project directory folder.
- Install composer dependencies
composer install
. - Install node dependencies
npm install
. - Create
.env
file with environment variables,or you can rename.env.example
file to.env
. - Set database connection in
.env
file. - almost install with => composer install and npm install
- install Redis
- install Laravel Echo
- install Socket.IO
-
Set following things in
.env
fileBROADCAST_DRIVER=redis
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=120
SESSION_DOMAIN=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
- Run migrations to generate tables in your database
php artisan migrate
. -
Open cmd and go to your project directory folder and run
php artisan storage:link
to access to image. -
Open cmd and go to your project directory folder and run
npm run watch
.
Enjoy chatting. Would be grateful for your feedback.