How To Deploy NodeJS API (Linode)

  Рет қаралды 18,338

The Full Stack Junkie

The Full Stack Junkie

Күн бұрын

This video will show you excatly how to deploy your NodeJS API on any VPS. For this tutorial we will be using Linode Ubuntu VPS to deploy our API and make it live on the internet. We will be setting a this API with SSL from Let's Encrypt and reverse proxy with Nginx.
Hope you enjoy this tutorial if you did please remember to LIKE and SUBSCRIBE if you haven't already😎👍
List of commands used in tutorial:
============================
touch
cd
ls
ssh-keygen -t rsa
apt-get update
apt-get upgrade
apt-get install npm
npm i -g n
n install lts
apt-get install nginx
nginx -t
systemctl restart nginx
Nginx location block code:
======================
location / {
proxy_pass localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
Basic API Github Link:
==================
github.com/LloydJanseVanRensb...
Linode Link:
==========
www.linode.com/
Certbot Commands:
=================
certbot.eff.org/instructions?...
Hardening up server even more:
==========================
www.linode.com/docs/guides/se...
Timestamps:
===========
00:00 Intro
02:21 Building Basic Express API
07:14 Setting up VPS with Linode
12:18 Login into server & updating
14:51 Installing Node and Npm
19:12 Copy project to server
30:10 Setting up PM2
34:02 Setting up Reverse Proxy with Nginx
44:00 Adding Server Firewalls
45:46 Setting up domain name and SSL
54:22 Outro
My website link:
=============
www.thefullstackjunkie.com

Пікірлер: 99
@curiosityoftheunknown
@curiosityoftheunknown Ай бұрын
this is the best still. i was searching how to keep my tg bot up and running 24/7 and you my man came to the rescue
@khandoor7228
@khandoor7228 2 жыл бұрын
Probably the best, most complete explanation/tutorial i have seen so far!!
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Thanks 🤓🙏
@KevinGerstner-ig7cw
@KevinGerstner-ig7cw Ай бұрын
Thank you so much for this video, man. I could not figure out reverse proxies but you explained it so well, and everything else. Appreciate you!!
@zenocode
@zenocode Жыл бұрын
I've needed this for a long time now and you completely explained it perfectly
@kresobernardic5366
@kresobernardic5366 Жыл бұрын
Yes, the best tutorial so far. Even title does not describe enough all topics and good stuff (not just node related) you covered here. Thumbs up.
@bonarhymetechhub7786
@bonarhymetechhub7786 Жыл бұрын
This tutorial is the best I have seen so far.
@AddisMultimedia
@AddisMultimedia Жыл бұрын
By far the best linode/node.js setup I've ever found. Thank you!!
@hansdotdev
@hansdotdev 11 ай бұрын
Thanks man, really clear explanation, you got yourself a new sub :)
@cristopherdimitrov627
@cristopherdimitrov627 2 жыл бұрын
Great video. To be honest I did not need that information at this point but anyway watched the full video just because it was perfectly explained. You got my subscription well done and keep up the good work man.
@arthurbz
@arthurbz Жыл бұрын
Super useful video! Thank you so much for putting out such quality content for us! I'm really grateful for this tutorial!
@derekirving1871
@derekirving1871 Жыл бұрын
Couldn't have been more useful!!!
@Inoinovation
@Inoinovation 2 жыл бұрын
One of the best toturial i ever seen 👍 I recommend all deleveloper to see this toturial. Great explanation man👍 Lot's of Love from India ❤️❤️
@frediustcdev9855
@frediustcdev9855 3 ай бұрын
Thats a really great tutorial 1 year later. Thanks
@luketembanimunyandu3326
@luketembanimunyandu3326 11 ай бұрын
Awesome tutorial, MEGA PROPS 👌..... Moving on to the react one
@samuelstankiewicz848
@samuelstankiewicz848 Ай бұрын
great tutorial, gets to the point and covers everything very well
@aliyasulfi9366
@aliyasulfi9366 2 жыл бұрын
Its best vedio available in Internet, love you bro explained well
@anichuranis2843
@anichuranis2843 2 жыл бұрын
Smashed the hit button after getting the notification ❤️❤️❤️
@vanluutran726
@vanluutran726 Жыл бұрын
You are really a good teacher to me
@vidigitusmarketing862
@vidigitusmarketing862 Жыл бұрын
Great content man! Very appreciated.
@kamaradinissaw8560
@kamaradinissaw8560 11 ай бұрын
You are a good teacher, keep it up 😊
@allenharris2019
@allenharris2019 Жыл бұрын
Excellent tutorial. This is the BEST and first one that I have watched that I could do. Great job explaining everything. Everything worked.
@MariosKotsiandris
@MariosKotsiandris 3 ай бұрын
That was definitely a hands on tutorial. It was so helpful and you went through everything I wanted to know. Thank you!
@dtory
@dtory 2 ай бұрын
this is the one of the most helpful video i have watched today. 👍
@sean-au
@sean-au 5 ай бұрын
Amazing. Great job very comprehensive
@oswaldinix1
@oswaldinix1 2 жыл бұрын
Excelent for me, very good explanation. thanks alot..
@lamargtv2572
@lamargtv2572 2 жыл бұрын
Finally, best explanation I have seen so far
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Thank you🙏
@lol51329
@lol51329 Жыл бұрын
Absolute banger of a video, thanks man!
@the_full_stack_junkie
@the_full_stack_junkie Жыл бұрын
You are welcome champ
@rajenderkatkuri7642
@rajenderkatkuri7642 8 ай бұрын
This video is a real gem for beginners like me and I'm sharing it with my mates rn.
@the_full_stack_junkie
@the_full_stack_junkie 8 ай бұрын
Glad to hear, check this video if you are interested in taking deployment to the next level. kzbin.info/www/bejne/npq7fHZnr9V1gtk
@aaronrodriguez6611
@aaronrodriguez6611 10 ай бұрын
So much thanks man!
@RylanTech
@RylanTech 8 ай бұрын
I use this guide every time I set up an express server. This is amazing, thank you so much.
@fleskimiso
@fleskimiso Жыл бұрын
Thanks so much, I succefully deployed an app on linode using external domain name with ssl cert. I actually needed wait few minutes for dns changes to propagate.
@user-pe7pp9su1x
@user-pe7pp9su1x Жыл бұрын
Thanks for your video and it help me a lot.
@n-0-1
@n-0-1 2 жыл бұрын
Great tutorial, thanks!
@russfreelancer
@russfreelancer 5 ай бұрын
really helpful! thank you!
@user-kx2nh1di2z
@user-kx2nh1di2z Жыл бұрын
Thank you so much, you are the best
@mohammedelsadany9522
@mohammedelsadany9522 2 жыл бұрын
thanks you bro ❤ 👉 Great work 💥✌
@dtory
@dtory Ай бұрын
Nice Video ( i used this to set up my API ) and am currently wondering can you create another video which teachers on how to run multiple NODEJS api on one server :)
@pragneshpatel8693
@pragneshpatel8693 Жыл бұрын
its a best video to understand linode nginx server with domain setup. If you can make new video for setup sub domain with linode than it it will cover full server setup tutorial. Good job : 👍
@justinlan8739
@justinlan8739 2 жыл бұрын
Great video! Keep up the Good work 👍
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Thank you! 👍
@ahadhossain2597
@ahadhossain2597 Жыл бұрын
Finally I found a best video for linode+nodejs tutorial
@the_full_stack_junkie
@the_full_stack_junkie Жыл бұрын
Glad it helped
@MarceloAruzamen
@MarceloAruzamen 2 жыл бұрын
Great tutorial!
@Aiducateur
@Aiducateur 2 жыл бұрын
I bow to the MAster. Just soooo amazing, clear, to the point, soooo helpfull. Thanks soooo much...
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Thanks champ @Marc_Gagnon
@the_nth
@the_nth 6 ай бұрын
Awesome
@chandanchyawanprashwala
@chandanchyawanprashwala 3 ай бұрын
Holly 😮. Awesome
@akifmertturk3657
@akifmertturk3657 Жыл бұрын
amazing video, thanks !!!
@ahmedelgaidi
@ahmedelgaidi 2 жыл бұрын
Thank you so much:)
@chineduofor4931
@chineduofor4931 9 ай бұрын
I came back to use this tutorial after using it early this year, thank you so much and God bless you.
@the_full_stack_junkie
@the_full_stack_junkie 9 ай бұрын
Wow great to hear champ, thanks for comment.
@TheRaz911
@TheRaz911 7 ай бұрын
Nah boet this helped me a lot hey. Managed to deploy my API with ease
@zenocode
@zenocode Жыл бұрын
thank you so much
@echokes9481
@echokes9481 2 жыл бұрын
You absolutely killed it with this tutorial, earned a sub from me and probably many others too. I do have a question, is there a way to deploy a separate frontend in the same vps? Is it just a matter of adding another configuration in nginx? would be great if I could get in touch with you too. Cheers!
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Yes it is possible will actually show how to do it in the next video. You will use a package called serve and nginx for routing
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
amazing
@mohamedyoussef8835
@mohamedyoussef8835 Жыл бұрын
Awesome video ++++++++++++++++ 🙂
@nahuelpiguillem2949
@nahuelpiguillem2949 7 ай бұрын
THANKS MANNNNNN. I hope you have a nice house and family HAHA
@stephankarl5855
@stephankarl5855 2 жыл бұрын
Lekker om n afrikaanse aksent te hoor! 😂😂 mooi storie!!!
@zenocode
@zenocode 9 ай бұрын
this is absolutely the best video i've ever watched on youtube about deployment espacially since it ends with a free ssl certificate method
@the_full_stack_junkie
@the_full_stack_junkie 9 ай бұрын
Thanks champ, check out my latest deployment video on my channel maybe that could be a good next step to deployment
@zenocode
@zenocode 9 ай бұрын
@@the_full_stack_junkie definitely checking that too
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
awesome
@AliHussein-ux5si
@AliHussein-ux5si Жыл бұрын
The best video I watched so far for setting up VPS. Thank you
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
helping you to break KZbin algorithm
@JustSomeDude33
@JustSomeDude33 6 ай бұрын
Thank you
@networkedsapien1229
@networkedsapien1229 2 жыл бұрын
Looking to host one soon such content is appreciated
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Really hope the video helps. If you get stuck anywhere along the line let me know🤓🤘
@n-0-1
@n-0-1 2 жыл бұрын
It would be awesome if you could make a tutorial on how to deploy a MERN or React app to Linode. I'm not sure how I can use a single domain for my node API and React front-end.
@karandidwani
@karandidwani 2 жыл бұрын
Great Video 👍
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Thanks🤓🤘
@simontodd8170
@simontodd8170 Жыл бұрын
Very good, thank you
@the_full_stack_junkie
@the_full_stack_junkie Жыл бұрын
You are welcome
@joshyee7384
@joshyee7384 Жыл бұрын
Hi, thanks for this video! It was super helpful! I have one issue though, after I created the reverse proxy and had my custom domain set up, every time I do a POST request it creates a 500 error. But if I go to my linode ip address / port directly, the website works flawlessly. Any ideas? Is it a NGINX configuration issue? Thanks!
@the_full_stack_junkie
@the_full_stack_junkie Жыл бұрын
So 500 is server error are you getting any logs from you api?
@joshyee7384
@joshyee7384 Жыл бұрын
@@the_full_stack_junkie I was finally able to figure it out. It was pretty simple in the end, for the NGINX configuration file, under the location I have to include the location to the route I was trying to POST to, which makes sense... but yea, thanks again for the tutorial!
@frozenironmp5386
@frozenironmp5386 Жыл бұрын
I love you
@derekkc7299
@derekkc7299 Жыл бұрын
would I able to know how to create more than one api? Since I have an issue of using same PORT Error, given that my localhost is working with same PORT:3000
@sumanthprabhu11
@sumanthprabhu11 2 жыл бұрын
Please make a tutorial on the use of Redux Toolkit + JWT http Authentication with MERN
@asifali-hk6gb
@asifali-hk6gb Жыл бұрын
hello sir, after deploying when we will add new code then how it will update
@vannymenghong6013
@vannymenghong6013 Жыл бұрын
post request force to get method, can anyone tell me how fix this error ? really appreciate all your recommend :)
@hakanaki
@hakanaki 2 жыл бұрын
After running the server and visited my_ip_address:port the browser was loading forever. Any idea why?
@abhishekmishra9841
@abhishekmishra9841 2 жыл бұрын
Make a video on sequelize with postgres and React sir please 🥺🙂
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Deployment of these? Or how to use them?
@abhishekmishra9841
@abhishekmishra9841 2 жыл бұрын
@@the_full_stack_junkie make a tutorial with express node js write queries on sequelize use Database postgres you can make Dashboard management system for school like make apis for teachers and students to manege they work and subjects time all things please sir This is good idea 🙂
@vijaykoladara8302
@vijaykoladara8302 Жыл бұрын
Please make video on digital ocean also
@the_full_stack_junkie
@the_full_stack_junkie Жыл бұрын
It is basically exactly the same as Digital Ocean just another platform providing you with a Linux Ubuntu machine.
@vijaykoladara8302
@vijaykoladara8302 Жыл бұрын
@@the_full_stack_junkie what happen if I push another code on github ? Means itS auto deployment whenever new code pushed ? if no then please make how can we make it auto deployment ?
@marketdoc.2087
@marketdoc.2087 2 жыл бұрын
Hi did you do freelance
@the_full_stack_junkie
@the_full_stack_junkie 2 жыл бұрын
Yes i do freelancing
@marketdoc.2087
@marketdoc.2087 2 жыл бұрын
@@the_full_stack_junkie could you provide me LinkedIn id i have project
@io_inc
@io_inc 17 күн бұрын
You dutch from RSA?
@the_full_stack_junkie
@the_full_stack_junkie 13 күн бұрын
Something like that
@user-sj2pg7tz7i
@user-sj2pg7tz7i 5 ай бұрын
Thank you so much, very easy to follow and everything worked first time around! This channel of yours deserves so much more subs, but I'm sure you'll hit that number pretty soon! 👍
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
amazing
How To Deploy A React App - Using NGINX & Linux
23:09
Tech With Tim
Рет қаралды 74 М.
Which one will take more 😉
00:27
Polar
Рет қаралды 83 МЛН
НЕОБЫЧНЫЙ ЛЕДЕНЕЦ
00:49
Sveta Sollar
Рет қаралды 7 МЛН
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
How To Use MySQL with NodeJS
48:44
The Full Stack Junkie
Рет қаралды 102 М.
Deploy React and NodeJS on Linux
29:59
DevOps For Developers
Рет қаралды 14 М.
How to Deploy a Node.js App to Digital Ocean (Nginx, Ubuntu)
20:03
NGINX Linux Server | Common Configurations
17:28
Akamai Developer
Рет қаралды 167 М.
Full Node.js Deployment - NGINX, SSL With Lets Encrypt
23:48
Traversy Media
Рет қаралды 397 М.
Which one will take more 😉
00:27
Polar
Рет қаралды 83 МЛН