Coder
Coder

Reputation: 97

How do I host a website that depends on node.js?

When running the site locally, I include all my node files in the same folder as the index.html file and then from the console I run the server side js which is node-dependent.

So in hosting this online, do I upload all the node files into the website directory? and how do I run the serverside js once the website is ready to be run?

thanks

Upvotes: 0

Views: 78

Answers (1)

veggiesaurus
veggiesaurus

Reputation: 651

You need to find a hosting service that supports node.js. Heroku is a good option for starting out. They have a free tier available. Once you have signed up, setting up your site and deploying it is quite simple if you're using a git repository and their command-line tools.

Upvotes: 1

Related Questions