I know how to, I am looking for the best way. So far I have used ubuntu, AWS Elastic Beanstalk, Google AppEngine (flex) but am still not too sure which is the best way? I have been thinking about using docker. But also want to host my apps at the lowest cost.
I'd say the best way to host NodeJS apps nowadays is using FaaS (Function as a Service) providers such as AWS Lambda, Firebase Cloud Functions, Azure Functions... So that you don't have to pay for the time your app is not running and since the cost os based on app requests, you can scale your cost together with app usage.
In order to make deployment easier and decouple your app from the provider, you can use some framework like Serverless (serverless.com)
Atul Sharma
Full Stack Developer | Cloud Native Applications
If you want to keep your costs low and deployment simple.
Done !
Few Tips :
If you want to use docker :
distelli.com/docs/tutorials/build-and-deploy-node…