Skip to content

Instantly share code, notes, and snippets.

View manusiakemos's full-sized avatar

Hafiz Nugraha manusiakemos

View GitHub Profile
@moaalaa
moaalaa / 0- install nodejs and redis.sh
Last active April 15, 2024 14:13
How to run PM2 with laravel queue and laravel echo server
# Node Js
# Centos7
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
sudo yum install nodejs
# Ubuntu 20.04
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt install nodejs
@brainlagid
brainlagid / laravel-socket-io.md
Last active December 1, 2023 06:57
Setup Laravel with Socket.io [Ubuntu 20.04]

Server Requirement

  • Redis sudo apt install redis-server
  • Composer here
  • npm sudo apt install nodejs npm
  • laravel-echo-server npm install -g laravel-echo-server

Laravel Dependencies Requirement

  • predis
  • laravel-echo
  • socket.io-client ^2.4.0 issue