Deploying Websocket On Laravel - php

I have a website written in laravel that is working fine, I am currently building a Chat function for it, can I add a websocket to it?
If yes, how to do it or is there any documentation?
I haven't found the right document yet

Related

Bundling Electron JS with laravel and sqlite

I developed a desktop application in react and electronjs. And built an API with laravel, eveything works perfectly. The challenge I have is, how I can deploy and run my electron app locally without having to manually setup the laravel API.
I am looking for a way to have all of this setup and installed once. I checked out a couple of options and one of such is php-server but that wasn't still going to cut it.
Shell Scripting
I have thought about executing a shell script to create the server instance pull my laravel application from github, set it all up on docker.
The challenge is, if any of my users run docker ps they would see all the processes running on my docker instance.
A possible solution would be isolating docker so it's not accessible globally but only within the application.
I don't know how to achieve this.
If this is achievable please drop some guide on how to achieve that or maybe suggest a better way to handle my current situation.

Does it work to deploy a React project to Netlify while the Laravel backend is deployed in Heroku?

I have a mini project for practicing my skills in React and Laravel and I wanted to deploy it online so I can add it to my portfolio and also for future job applications.
Does it work if I deploy the front end code (React) in Netlify and the back end code (Laravel) in Heroku?
Wanted to test it out since its both free to deploy in those ways. I already tried deploying both front end and back end in just Heroku and wanted to test some things differently.
Yes, it's possible you just have to add Functions to your front app.
Tutorial React APP to Netlify :
https://www.netlify.com/blog/2016/07/22/deploy-react-apps-in-less-than-30-seconds/
Function API example :
https://functions-playground.netlify.com/
Hope this helps.

how to create electron desktop app with existing angular2 project

I have an angular2 project which uses mysql, php, jspdf and firebase.
I tried to find it with lots of github sources but it does not work!
The problem is, i have to run it on desktop without internet.
So how can i convert an existing angular2 project to electron desktop app and package it?
https://github.com/electron/electron-quick-start
I figured out with this. It is really simple.

How to properly user Code Deploy (AWS) with laravel 5.*

Ive been using Laravel and AWS for about a year now, i know there are people that deploy using code deploy (AWS) I have attempted doing it myself. But i want it to work with a load balancer and auto scaling group. Can anyone point me to a tutorial or give me a hand on this. I'm very grateful.
For working with AutoScaling Group, see: http://docs.aws.amazon.com/codedeploy/latest/userguide/auto-scaling-integ.html
For working with Load Balancer, see: http://docs.aws.amazon.com/codedeploy/latest/userguide/elastic-load-balancing-integ.html

Embeded PHP/MySQL Implementation

I'm writing a voting app for my school using PHP/MySQL. I've currently tested it on a WAMP server and everything is working.
The central PC to be used is already running WAMP. This will make my app vulnerable since the root admin can just enter the database and change values.
I found out that I can package it as an app that has its own embedded PHP/MySQL. I found one solution called Klone, but that is only for linux. I'd want to be able to do this in windows
Any ideas?
Thanks
I've found a solution that implements a new php/mysql stack as a standalone app independent of the existing stack. http://www.server2go-web.de/

Categories