Deploying a Sapper app on GoDaddy shared hosting with cPanel - javascript

I am new to web development and have never deployed an app before.
I have bought a domain, ssl, and shared hosting through go daddy and am trying to deploy a simple Sapper app.
I have been able to deploy a basic node.js app by following this thread I have Godaddy Shared Web Hosting I need to host node.js website can host site?
I have uploaded my app folder into the user/public_html folder and can successfully build the app by running:
node sapper/build
The terminal replies with "Starting server on port 3000" which doesn't change anything.
My guess is I need to modify my server.js but I am really out of my depth (it's using polka btw).
If someone could please help me deploy the app correctly and how to integrate the ssl certificates it would be much appreciated.
Thanks :)

Related

RedwoodJs deployment on Cloudflare

I want to deploy my redwoodjs application to cloudflare. I was able to deployed frontend (web) to cloudflare pages and it is working fine. But How I can deploy API to cloudflare? I'm new to redwoodjs. There is no officail documentation for redwoodjs deployment on cloudlflare.
I have no clue where to start.

How connect to Html page with node.js server and aws virtual machine

I'm trying to install a node.js server for a sentiment analysis service with my Twitter account that retrieve the tweets on my profile and provides a statistical output and saves them on a Mongo db istance.
I have uploaded my node.js code on an AWS virtual machine with an public IP address and with the permission to create an endpoint with HTTP and HTTPS protocols.
I have installed successfully the node.js code on AWS virtual machine with Windows Server 2019 OS, with the npm install -g -n command with 0 dependencies errors, and when I try to connect to the AWS virtual machine with http://ip_public_address:8080 I get the error "impossible to connect - err-connection_timeout".
This is the link to the github project that I need to install and to work on AWS virtual machine:
https://github.com/thisandagain/sentiment
Maybe I am confused about how to connect with the index.html page via AWS virtual machine and I don't know if this page must be retrieved with a IP public address or localhost parameter and what is required, at node.js level code, in order to enable the AWS virtual machine to respond to my browser with the content of index.html page.
Please can you give me advices about to implement successfully this project?
Thanks
Filippo
You don't mention security groups in your question at all, so the likely cause is that you never opened port 8080 in the security group assigned to the EC2 instance. You may also need to open that port in the Windows firewall on that server.

Making a video-chat app in js without nodejs

I have a server (cPanel) in GoDaddy. And I want to create a video chat app without NodeJS.
Tutorials on the web use NodeJS. Can't I just run it on GoDaddy cPanel Linux hosting servers?
Please help.
Try to use some open-source projects.
https://jitsi.org/projects/
Step by step set up : https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-start
Just set up the jitsi Videobridge and jitsi-meet in 30 min and you are ready to go.
Make sure to open the required port of the firewall.

What are the solutions for deploying Docker-based app in private production environment?

This is my first post on SO after a long time using it.
In advance, please apologize for my English ;)
Currently, I am working on an app that needs to be Dockerized. This app will be deployed on just one server in a private network. (We assume that the customer will not have access to the internet.)
To sum up, I build my app with a docker-compose.yml file. It consists of 2 nodejs app and a mongodb server.
What are my solutions to deploy this app in a private customer environment with only one server?
Thanks by advance.
finally, my research did great. I think I found a solution to my problem.
Because I'm using 2 node.js apps, and a MongoDB server, I will use PM2.
https://pm2.keymetrics.io
PM2 is a tool that will help to manage, monitor, restart in case of failures multiple node.js process.
I will just use this tool to make my project production ready (just npm and pm2 to install on the server) and talk about Docker for further investigations.
Thank you,

Installing NodeJS and SocketIO in a Remote Server

My project is a Real Time Two-Player Facebook Game, and what I need is a tool that will help me build the game with quick responses to enable the "Real Time" function of the game. I have just found out about the Node JS and Socket IO. I have some knowledge in JavaScript so I stepped up and watched a few tutorials that discuss the functions of Node JS and Socket IO.
Here's the link to the videos that I have watched:
http://www.youtube.com/watch?v=mSE6xHkcX0w
I understand the basic of the Node JS and Socket IO and successfully installed it in my localhost. The problem is when I uploaded the files from my localhost to my remote server, some functions of the program are not working well. I don't know how to node my JavaScript file when it is on the server, because if it's in my localhost, I am using command prompt to run it.
node app.js
Node is not a web framework.
Chances are, you're using a web host that's generalized for web frameworks like PHP and Ruby on Rails. You're going to need virtual private server hosting, or Node-specific hosting, because Node requires a virtual machine to run. You otherwise won't be able to run Node Package Manager or Node itself.
Joyent has provided a list of hosts here.
If you chose to use a VPS or dedicated machine, an installation guide would be found here. This is how you would install Node on CentOS.
wget http://nodejs.org/dist/v<version>/node-v<version>.tar.gz
tar -zxf node-v<version>.tar.gz
cd node-v<version>
./configure
make -j <number of cores>
make install

Categories