Skip to content

This is a Laravel real-time web chat application with Socket.io, Laravel-echo & Redis

Notifications You must be signed in to change notification settings

Mohsen-mhm/chat-app

Repository files navigation

Laravel Logo

About project

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

Getting Started

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

Prerequisites

install Redis


Database Migrations

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.

About

This is a Laravel real-time web chat application with Socket.io, Laravel-echo & Redis

Topics

Resources

Stars

Watchers

Forks