Git Product home page Git Product logo

simple-realtime-message-socketio-nodejs-laravel's Introduction

Simple-realtime-message-SocketIO-NodeJS-Laravel 5.1

Simple realtime push message using Socket.IO (Node.JS) integrated with PHP (Laravel) and database MySQL

Demo

Visit Here

Setup

Download or clone Master File and then install the composer using terminal / cmd. Make sure that you've installed Composer

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).

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

simple-realtime-message-socketio-nodejs-laravel's People

Contributors

moemoe89 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.