So I have Node.js installed on my server.
However, I'm a little confused about the next bit. I've spent a few hours researching about Node.js but I can't seem to find any clearly-laid out info on what I'm looking for.
On my host PC, I can run Node.js through the command prompt and loading up localhost:port in the browser. This works fine. However, I can't figure out how this would translate onto using Node.js on my VPS. As I mentioned, it's installed. But how would I use physically use Node.js in my programs, and be able to access it on the pages when needed?
I'm usually a PHP developer but I'm using this chance to dive into the world of Node and pick it up, and begin using it instead of PHP.
Thank you for the help.
80is considered bad practice. Since services running below port1024must run as root, you're giving full privileges to application code that may contain vulnerabilities. Instead, run a well-tested production-ready server such as Apache or Nginx on port80, acting as a reverse proxy to a Node.js server only accessible from the same machine running on an unprivileged port.