Best Alternatives To Heroku For hosting a NodeJS app for FREE

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey welcome everybody today Heroku is closing down their three dinos postgres and data for Reddit this means that you will no longer be able to host your node.js projects for free a lot of people like me create projects for fun and to keep them running can get fairly expensive and narrow down the node.js hosting platforms I found to be the simplest to use and don't require credit card details both have similar performance on their free tier but you do need to know that free tiers usually have some sort of limitations like API requests storage and so on saying this they're perfectly fine for small projects today we will look into cyclic and render let me show you how easy it is to publish an app on both platforms for this example I'm going to be using a node tutorial project that we did two years ago which I re-uploaded recently and all you need to note is that I have my app.js file here which is the main file of the project and if I go to packages on the main I have the app.js spouse said and undescript this is the important bit is where I have the start script set to note app.js which means that we're going to be running this file here as our main file and if I was to click on the app.js file super quickly you will see that the code is a little bit out to date but it will work just fine and one thing that you need to notice is that I've set the app.listen to the process.env.port which is the environment port number that each hosting platform is using enough set the port to 5000 as default that's pretty much all you need to know now let's jump into cyclic and get started the first thing that you need to do is sign up now the only way to sign up in cyclic is to use your GitHub account so all you need to do is Click continue with GitHub and sign up I've already done that so I'm going to click sign in instead and then continue with GitHub okay your dashboard should look very similar to mine I already have two projects in here that I've tested a few months ago but I'm going to be creating a brand new one so here under create new app click on the deploy button and then as you can see they have a few starter templates that you can use such as the tiny API the express API database API you have full stack front end and so on so what I'm gonna do is link my own click on this and I need to search for the repository that I created earlier so I'm going to search for news and this is the one that I'm going to be using node.js news clone deploy we need to connect cyclic to the project so click connect and this is going to start building the project okay and this literally took nine seconds to deploy and we already have a URL that we can see the website on so if I click on the URL so as you can see it's all working and if I was to click on one of the tutorials here for my blog you'll see that we are getting the data and so on so that's pretty much how you publish a project on cyclic the other things that you might want to look into is if you go to the dashboard you can click on this config icon and further modify your project if you wish to you can set your environment variables in here you can connect to data storage Chrome jobs and so much more now let's have a look at render all you need to do is click on get started and create account you can either choose GitHub gitlab Google or you can use your email I've already created an account using GitHub so I'm gonna sign in with GitHub super quickly so I'm going to click on sign in GitHub and then as you can see I'm in inside here we have a couple of options as you can see you have static sites web services private Services background workers and so on the one that we need is the web services click on new web service and then inside here is where we can do exactly the same thing that we did with cyclic we can connect our project so I'm going to search for news and this is the project that I need so I'm going to click connect we need to give it a name News website you can choose a region from here so I'm going to choose the EU region which is closer to me the branch is the main branch and everything else is looking good as you can see the start command here needs to be node app.js which I've already configured on the actual project that I showed you earlier we have the free tier here which gives you 512 Ram shared until on if you scroll down a little bit more all we need to do is create web service and wait a few seconds okay this should take a couple of seconds to deploy okay and now we have built successful deploying starting service with node app.js and listening on Port a thousand so now I can click on the URL here and as you can see the website is working just like Recycling and now I can click on one of the Articles and we get the data and so on and if we jump back to the render website you will see that we have similar options here we have events logs disk environment uh jobs sharing and so much more and that's pretty much it play with both platforms see which one you like more and that's pretty much it thank you very much for watching I hope that you found this useful consider subscribing and I'll see you in the next one
Info
Channel: Raddy
Views: 76,974
Rating: undefined out of 5
Keywords: nodejs hosting free heroku, heroku, nodejs, free hosting, how to deploy node js application on server, heroku deploy node js app, heroku deploy with github, free web hosting, host website on cyclic, host website on render, how to upload to cyclic, nodejs hosting free, deploy nodejs, raddy, nodejs tutorials, nodejs tutorial
Id: q8GSWGu2roA
Channel Id: undefined
Length: 5min 52sec (352 seconds)
Published: Mon Nov 28 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.