Node.js Tutorial – 63 – Deploy the Node.js app Video Tutorial DreamHost

Sign up DreamHost
Node.js Tutorial – 63 – Deploy the Node.js app

 Video Tutorial DreamHost

Node.js Tutorial – 63 – Deploy the Node.js app

Tutorial Hosting
Welcome back in this video we’re going to learn how to deploy a node.js application there are quite a few free options to deploy your node.js app Heroku used to be a good choice but it is not free anymore in this video I will be using render but

Fly is also a good option for you to explore Step 1 Let’s quickly take a look at the code we will be deploying it is this index.js file it contains a very simple HTTP server that responds with hello world the app runs on Ford 3000 by default but

Also accepts the value as an environment variable we will see how to set this on render Step 2 ensure your code is pushed to GitHub as you can see I already have a repo created which is the same repo I’ve used for the entire series nodejs tutorials we have a folder called nerd

Fundamentals and this index.js file is what we will be deploying in this video step 3 head over to render.com and click on get started for free if you’re new to render I already have an account once you sign in you should arrive at the dashboard page step 4 to deploy a node.js application

Click on the new web service button under the web services option next connect to your GitHub account by clicking on the corresponding button enter your credentials and authorize render next you can give permission to all your GitHub repositories or only selected repositories I like to give access only to selected node.js repositories

From the drop down I have already selected node.js tutorials now GitHub may ask for further authentication so please finish that step once render is installed in the repo you should be redirected back to render ideally it should bring you back to where you left off but if it brings you

Back to the dashboard it’s not a problem step 5 click on new web service again and this time connect to the node.js repo here we need to enter a few details first we enter a unique name for our service let’s call it code Evolution hyphen demo

We can leave the region and Branch as is the root directory we’re going to set it to node fundamentals this is the folder that contains our index.js file environment is fine as is for the build command you could leave yarn as the default but if you’re not familiar with yarn it is npm

Space install for our project we don’t have a package.json file and hence this does not matter the start command however is node index.js scroll down and we leave the selected plan as free we are however going to click on the advanced button and add an environment variable

The key is port in uppercase and the value is three thousand we can leave everything else as is scroll down to the bottom and click on create web service the deployment is kickstarted which will take a few minutes you should see the build is successful and the server is running on Port 3000.

If I click on this generated link we should see our app responding with hello world as you can see it is really simple to deploy a node.js application alright thank you for watching and I’ll see you in the next video
⚑️Syncfusion Components: https://syncf.co/3Emhvnv πŸ“˜ Courses – https://learn.codevolution.dev/ πŸ’– UPI Support – https://support.codevolution.dev/ πŸ’– Paypal Support – https:/ /www. paypal.me/Codevolution πŸ’Ύ Github – https://github.com/gopinav πŸ“± Follow Codevolution + Twitter – https://twitter.com/CodevolutionWeb + Facebook – https://www.facebook.com/codevolutionweb πŸ“« Business – Codevolution .business@gmail.com Deploy Nodejs App Node.js Tutorial Node.js Tutorial for Beginners
#Node.js #Tutorial #Deploy #Node.js #app


https://i.ytimg.com/vi/yln_CffenYw/hqdefault.jpg

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

Lost Password