Need help in hosting the laravel project using nodejs chat system - node.js

Hi everyone i am having a problem hosting the website made in laravel(php) and chat system in NodeJs. I have done this using wamp server and running node server in my local pc computer. Now i am trying to put those in online, i uploaded in public_html/www folder, the laravel part worked but the chat built in nodejs showing js error saying websocket.
I have no idea how to make it run online. can you give me some clue how to solve this.

Related

How to deploy several react apps in a node.js server VPS hostinger server

lately I've been doing a website with an admin panel using react, and I would like to deploy the website in a VPS that I bought from hostinger that haves CentOs7, and I don't know how to deploy it as in my PC i only do npm start and opens into a local server, well now I would like to open in directly in my domain with the VPS server, please I need the help, I've been struggling for over 3 days to solve this problem but I don't know how to.
I already installed Nodejs in the server I just don't know what to do next.
I tried reading lot of articles and watching YT videos but noone helped me, or the ones that were kinda usefull I didn't understand them.

Test node.js file from website

I am completely a beginner in node.js and have no idea about its architecture.
I was just going through a tutorial where I have create a sample test node.js file (myapp.js) on my Godaddy server which listens to port 3000.
I have already installed nodejs on the server but not able to test it. I have tried by entering the but that does not work. Can anyone please guide me.
mywebsite.com:3000

Run React basic app on ubuntu using node js

I am fairly new to NodeJS, here is the problem statement:
I have a small app (let's consider default app) of ReactJS. I installed NodeJs on my Ubuntu Server. Now when I hit mydomain.com in a browser I want my ReactJS app to show there. I know I need to do some configuration but somehow not able to find what's the right way of doing it. I have nothing installed on my Ubuntu server except NodeJS and npm.
Any suggestion will help me.
Thanks
For pure Node.js solution, tou can use static files (HTML/JS/CSS) HTTP server like following
https://github.com/cloudhead/node-static
https://github.com/indexzero/http-server
I've used http-server which is super simple and can be installed as a CLI tool as well

Deploying Sails to a standard web server (Windows)?

Today I discovered Sails and have been watching a few tutorials. One thing I can't seem to work and find out is how to deploy it to a standard web server, like for example via an FTP client. I've seen the tutorial on how to deploy it to a Heroku account, but this isn't really what I'm after, as we already rent a Windows 2012 server.
I've got a feeling I'm completely missing something here, so can someone please help me out :)
Many thanks
You can transfer all files via FTP to your Webserver (include all node-modules).
But you have to make sure NodeJS is installed on your server. Than login into your Server (e.g. via SSH) and start your Sails-App (node app.js)

Running unity with NodeJS

I'm using NodeJS with Express and trying to run a Unity html file on my site.
Basically what I'm trying to do is to get a Unity html file I have to play on my NodeJS site. The files are WebPlayer.html and WebPlayer.unity3d. If I open up the local copy of WebPlayer.html in my browser, the game plays fine. However, if I try to run the game through my site, I get the message Failed to download data file. I've looked this up, and have seen people having the same issues as me, but couldn't find too many helpful suggestions from people using node. Any help would be appreciated. Thanks!
Running the local copy in my browser (unity is loading the game and is working fine). file:///Users/thomasbaldwin/Desktop/WebPlayer.html
Running the WebPlayer.html file on my local server.
http://localhost:3000/account/game/

Resources