Starting November 28, 2022, Heroku has announced it will stop supporting free plans, But guess what there are platforms where you can still deploy your applications for free, we will be using Fly in this lesson to deploy a Node.js application.
We'll begin by installing Fly in our operating system, you can check How to install Fly out Here.
Now we need to signup using this command below, you can use PowerShell on a windows machine.
flyctl auth signup
Verify your email and it should lead you to the dashboard
In the directory with your source code you need to run flyctl launch
to create and configure your fly app, it will bring a prompt to create your app name, then a region, we'll be using Chicago, Illinois (US) , the next prompt will ask if you want to create a Postgresql database since i'll be using MongoURI i'll go with no and then deploy the app.
And now wait for you deployment to be complete, when it is complete you should see your Node.js app ready at Fly Dashboard
your Hostname is available in your Application information, you can check Fly Documentation to learn more about Fly.
You've come this far, Thanks for reading.