This is a real-time web chat app with Socket.io, Laravel-echo & Redis.
- Laravel
- PHP
- Js
- Socket.io
- Laravel-echo
- Laravel-echo-server
- Redis
- Redis-server
Clone the project repository by running the command below if you use SSH
git clone git@github.com:Mohsen-mhm/chat-app.gitIf you use https, use this instead
git clone https://github.com/Mohsen-mhm/chat-app.gitAfter cloning, run:
composer installand:
npm installDuplicate .env.example and rename it .env
Then run:
php artisan key:generate- For Linux
- For Mac
- For Windows - Use This repo to download and install Redis on Windows
Be sure to fill in your database details in your .env file before running the migrations:
php artisan migrateRun Redis server in cmd :
redis-serverRun Laravel echo server in cmd :
laravel-echo-server startAnd finally, start the application:
php artisan servevisit http://localhost:8000 to see the application in action.