https://github.com/moemoe89/simple-realtime-message-socketio-nodejs-laravel
⏱️ Simple realtime push message using Socket.IO (Node.JS) integrated with PHP (Laravel) and database MySQL
https://github.com/moemoe89/simple-realtime-message-socketio-nodejs-laravel
laravel nodejs php realtime socket-io
Last synced: 12 months ago
JSON representation
⏱️ Simple realtime push message using Socket.IO (Node.JS) integrated with PHP (Laravel) and database MySQL
- Host: GitHub
- URL: https://github.com/moemoe89/simple-realtime-message-socketio-nodejs-laravel
- Owner: moemoe89
- Created: 2015-09-06T07:00:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T06:20:13.000Z (about 10 years ago)
- Last Synced: 2025-05-15T14:44:16.863Z (about 1 year ago)
- Topics: laravel, nodejs, php, realtime, socket-io
- Language: PHP
- Homepage:
- Size: 765 KB
- Stars: 50
- Watchers: 6
- Forks: 32
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-realtime-message-SocketIO-NodeJS-Laravel 5.1
Simple realtime push message using [Socket.IO](http://socket.io/) ([Node.JS](https://nodejs.org/en/)) integrated with PHP ([Laravel](http://laravel.com/)) and database MySQL
# Demo
[Visit Here](https://www.youtube.com/watch?v=54yhqN3ITEQ)
# Setup
Download or clone [Master File](https://github.com/moemoe89/Simple-realtime-message-SocketIO-NodeJS-Laravel)
and then install the composer using terminal / cmd. Make sure that you've installed [Composer](https://getcomposer.org/)
```
composer install
```
# Setting db
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
generate key using
```
php artisan key:generate
```
# Migrate the db
```
php artisan migrate
```
# Install Node.JS modules
Make sure that you have already installed ([Node.JS](https://nodejs.org/en/)).
```
npm install --prefix ./public/
```
# Running Node.JS server
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