How to host a node.js web server that can handle requests in port with GitHub pages or InfinityFree

Viewed 733

I know this question's answer can be easily looked up in google but sadly I didn't get the answer to my question.

I want to know how to host a node.js web server that can handle requests in Github Pages.

If it isn't possible in Github Pages, then in any other hosting service (preferably InfinityFree).

1 Answers

GitHub Pages is a static hosting provider, meaning that it does not provide any way to host server-side logic.

According to InfinityFree's forums, they do not support any server-side language other than PHP (including Node.js) as of current.

If you are looking for a free provider that would allow you to run a Node.js program, you can look into Heroku or serverless platforms such as Netlify and Vercel. It is worth noting that, being free, all of these providers have their own limitations and requirements.

If you're willing to pay, you can rent a virtual private server from a provider such as Microsoft Azure or Amazon's AWS for a small amount (exact amount dependent on your location), or make use of their serverless offerings.

Related