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 [email protected]:Mohsen-mhm/chat-app.git
If you use https, use this instead
git clone https://github.com/Mohsen-mhm/chat-app.git
After cloning, run:
composer install
and:
npm install
Duplicate .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 migrate
Run Redis server in cmd :
redis-server
Run Laravel echo server in cmd :
laravel-echo-server start
And finally, start the application:
php artisan serve
visit http://localhost:8000 to see the application in action.