Coder Social home page Coder Social logo

jzxyouok / chat-laravel-socketio-redis-vuejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gdbhosale/chat-laravel-socketio-redis-vuejs

0.0 1.0 0.0 401 KB

Laravel 5.3 Chat Application using Socket.IO, Redis, Vue.js and Event Broadcasting

PHP 11.53% JavaScript 87.59% ApacheConf 0.09% Vue 0.09% HTML 0.70%

chat-laravel-socketio-redis-vuejs's Introduction

Laravel 5.3 Chat application using Socket.IO, Redis, Vue.js and Event Broadcasting

This is simple chat application using standard libraries except 'laravel-echo-server' which I think completely unnecessary.

Installation

Clone this repository into your machine.

git clone https://github.com/gdbhosale/chat-laravel-socketio-redis-vuejs.git

Install Laravel

composer install

Make sure you have your .env configuration as below:

SOCKET_PORT=3000

BROADCAST_DRIVER=redis
CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_DRIVER=redis

Install Redis server

// Ubuntu
sudo apt-get install redis-server

// MacOS
brew install redis

Run Redis server in new terminal window / tab

redis-server

This application needs Laravel Queue to Run Events Broadcasting. Make sure you have used QUEUE_DRIVER=redis. Run Laravel Queue Command in new terminal window / tab

php artisan queue:listen

Now you need to download Socket.IO server and other dependencies via npm.

npm install

Now start Socket.IO server

node socket.js

Now Check your application in Browser.

Get List of All Basic Changes for Simple Laravel-Socket.IO Application here: Changes.md

Follow me on Twitter or Github. Check Laravel Admin Panel created by me: LaraAdmin

chat-laravel-socketio-redis-vuejs's People

Contributors

gdbhosale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.