Answer the question
In order to leave comments, you need to log in
How to run node js backend on hosting?
Hello everyone, I decided to write a project with authorization and a personal account (which is updated in real time, displaying something like TaskBoard ). I decided to take Node js for backing. The crux of the matter is, there is a front, I made a connection file to the MySQL database, sort of like on Nodejs. And I can’t figure out how to run it on a hosting in my soul. There is no information in Google about where and in which folder you need to upload Node js files for everything to work.
I will upload via FTP Client.
Help experts.
Answer the question
In order to leave comments, you need to log in
No way. If you do not have ssh access to the server, then you will not be able to run something other than html pages on it. We take a normal vps
You won't be able to run a Node.js project on hosting. No way. Hosting is usually for PHP projects. It is not clear about the connection to the database. Where are you connecting from? From the frontend? (If so, that's terrible.) VPS. Set up your own Node.js server.
https://www.digitalocean.com/
If for the test and for training purposes install any server OS on your virtual machine, we will replace VDS.
Experiment by connecting via SSH and in command mode
Good afternoon. Node JS is a special, highly specialized platform that is different from the usual LAMP stack (Linux, Apache, Mysql, PHP). As you rightly noted, Node JS is also used for the backend, and for this the hosting provider must support this environment, which is not so simple, instead it is easier to run your own virtual server and customize your own Node JS for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question