In order to deploy you Node.js application, you will be needing a VPS. When you have VPS, it's like having a machine with an Operating System most probably linux with an public IP.
After getting a VPS, you access it via SSH with either a key or password, after which you will get into the terminal of your VPS.
Now, you can do almost everything that you do in your local machine or workstation - from installing and running Node.js application to serving static web pages through Apache or Nginx. So you install Node.js and all other required processes and run your code in some port - like you do in your own machine. Then your application can be accessed through the public IP provided to you. Manually setting up your application is done if you are provided with only an instance(the term may vary among service providers)
Many Providers may also provide you with pre-created containers for Node.js where you will just have to deploy your code and they will configure everything and run it.
For testing purpose, there are some options which are free:
- Openshift: It is absolutely free for one project but will terminate if
inactive for a long time. It is pretty much straight-forward and easy to
deploy
- Heroku: It is also free for one project. It has a cap of 720 hours
for your application to run per month. You need to install heroku-cli and
might be a bit tricky for beginners.
There are some clouds that also provide free services requiring your credit card information:
- AWS: It provides one year free trial known as 'Free Tier Plan'.
- GCP: It provides $300 worth of free credit.
- Alibaba Cloud: It's website says "Enterprise Level Customers
Enjoy a Free Trial Worth $1200"
If you are looking for a low price VPS, then you can also have a look as Vultr.
Since you are a beginner, I suggest you to get a VPS and setup everything manually. This way, you will have knowledge of servers and how they work.
Here are some links that might be useful:
- How to log into a server via SSH
- Installing Nodejs on server
- Running Nodejs for production