Simple realtime push message using Socket.IO (Node.JS) integrated with PHP (Laravel) and database MySQL
Download or clone Master File and then install the composer using terminal / cmd. Make sure that you've installed Composer
composer install
open .env file and configure the database connection
DB_HOST=your_host
DB_DATABASE=your_db
DB_USERNAME=your_username
DB_PASSWORD=your_password
generate key using
php artisan key:generate
php artisan migrate
Make sure that you have already installed (Node.JS).
npm install --prefix ./public/
After that go to your root directory and run the server using terminal / command prompt with this syntax :
node server.js
if no error you will get this log :
Server listening at port 3000
Finally you can try send message