Giter VIP home page Giter VIP logo

fiveone-vuejs-socketio's Introduction

Laravel, Vue.js and Socket.io

I have put this repo together so that others can get started easily with Laravel and Vue.js and Socket.io

  1. Clone the repo
  2. Add a .env file and add your database credentials (an example below if you're using Homestead)
DB_HOST=192.168.10.10
DB_DATABASE=fiveone-vuejs-socketio
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=redis
  1. Run composer install/update
  2. Run npm install (might need to use sudo npm install)
  3. Migrate your database php artisan migrate
  4. Run gulp to compile the resources/assets into your public/ directories
  5. Open up two tabs within the command line and SSH into Homestead
  6. Go to your project root and in the first one run redis server --port 3001
  7. In the second run node socket.io
  8. I think you should be ready to test in the browser
  9. /guestbook to sign the guestbook (Vue.js)
  10. /fire and /test to, well, fire and event and test that you can see it. (All the while you can see the output in the command line)

To do

  1. Integrate Vue.js and Socket.io so notifications are sent to logged in users when there is a new post.
  2. Install supervisord or similer to keep socket alive.

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.