Full Node.js Deployment to AWS - FREE SSL, NGINX | Node js HTTPS Server

  Рет қаралды 19,309

Scale-Up SaaS

Scale-Up SaaS

Күн бұрын

In this video you will learn How To deploy Node js server on AWS ec2 instance Ubuntu 22.04 server with Free SSL certification using NGINX as a reverse proxy :)
📕 Get more of AWS:
AWS Master Course for beginners:
scaleupsaas.dev/aws-master-co...
Join our newsletter:
scaleupsaas.dev/newsletter
GitHub repository for more instructions:
github.com/saasscaleup/nodejs...
============= Video Related Links ============
[00:00] Intro - Node js HTTPS Server demo
[00:33] Tutorial requirements
[01:15] [STEP 1]: Launch EC2 ubuntu 22.04 Server
[04:32] [STEP 2]: SSH to Ubuntu server to install packages
[06:02] [STEP 3]: Update and Upgrade server
[08:22] [STEP 4]: Clone nodejs-ssl-server Repository
[09:58] [STEP 5]: Run Node app.js
[11:22] [STEP 6]: Install pm2
[11:55] [STEP 7]: Running the node js app with pm2
[13:06] [STEP 8]: FREE SSL - Install Nginx web server
[16:22] [STEP 9]: Add Domain in goDaddy.com
[17:29] [STEP 10]: Set FREE SSL Certificate (HTTPS)
============= Support ============
Leave a comment below and I or someone else can help you.
If you Like the tutorial and you want to support my channel so I will keep releasing amazing content that will turn you to a desirable Developer with Amazing Cloud skills... I will really appreciate if you:
Buy me A coffee ❤️ : www.buymeacoffee.com/scaleupsaas
============= Tech stack ============
AWS
AWS EC2
AWS UBUNTU 22.04 SERVER
NODE JS
NPM
NODE PM2
Free SSL / HTTPS
Let's encrypt
#aws #nodejs #freessl

Пікірлер: 152
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
Your AWS DREAM Course coming Live SOON.... 🚀☁ "Mastering AWS Cloud for Beginner - Learn AWS cloud by Building & Deploying scalable web application using 3 different aws architectures" Now you can: Pre-Register to the course and get 90% DISCOUNT or Get notification once the course is LIVE (Full Price) Here is everything you need to know: scaleupsaas.dev/aws-master-course-for-beginners/
@blackbucks409
@blackbucks409 5 ай бұрын
Alright. This is the one I was looking for from last 3 days. Thank you so much.
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing content.
@nikolabozin2129
@nikolabozin2129 10 ай бұрын
Loved it! Worked instantly! Thanks ALOT!
@ScaleUpSaaS
@ScaleUpSaaS 10 ай бұрын
Thanks for sharing. Subscribe for more amazing tutorials
@luismendes8238
@luismendes8238 12 күн бұрын
Dude you helped me! I was suffering trying a lot of stuff, even seeing the original upadted video from amazon youtube channel haha! But that secret with the nginx was the deal!!! Thank you a lot!!!
@ScaleUpSaaS
@ScaleUpSaaS 12 күн бұрын
Thanks for sharing. Appreciated. Subscribe for more amazing content ❤️
@tarnum13
@tarnum13 Жыл бұрын
Thank you! Great tutorial, keep them coming
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Appreciate ❤️
@vehbiozcan
@vehbiozcan 2 ай бұрын
Thank you man, it really helped me, I hope your channel grows even more.
@ScaleUpSaaS
@ScaleUpSaaS 2 ай бұрын
Thanks for sharing. Appreciated. Subscribe for more amazing tutorials
@PowaPixelDesigns
@PowaPixelDesigns 9 ай бұрын
My 2 weeks of neck-deep frustration just ended! Thanks so much for this tutorial ❤
@ScaleUpSaaS
@ScaleUpSaaS 9 ай бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing tutorials 🦾
@SMGentleman
@SMGentleman 6 ай бұрын
תודה לך זה ממש עזר לי, תותח!
@ScaleUpSaaS
@ScaleUpSaaS 6 ай бұрын
בכיף! תמשיך לעקוב, הולכים להשתחרר סרטונים נוספים בהמשך
@guzidev
@guzidev 10 күн бұрын
Thanks for the tutorial! I really appreciate it!
@ScaleUpSaaS
@ScaleUpSaaS 10 күн бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing content
@Kaviarasu_NS
@Kaviarasu_NS Жыл бұрын
This tutorial made my day. Thanks a lot ❤
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Happy to hear that 😊. Keep follow… next video will be about “how to deploy node js app with GitHub actions”
@vanjateodorovic3954
@vanjateodorovic3954 2 ай бұрын
This really helped me! Thank you!!:)
@ScaleUpSaaS
@ScaleUpSaaS 2 ай бұрын
Thanks for sharing. Appreciated. Follow for more amazing tutorials
@hienminhle2486
@hienminhle2486 2 ай бұрын
I have been battling with this issue for 2 days and finally video that solved my issue. Thanks a lot!
@ScaleUpSaaS
@ScaleUpSaaS 2 ай бұрын
Thanks for sharing. Appreciated 😎. Subscribe for more amazing tutorials.
@jayendraawasthi2646
@jayendraawasthi2646 7 ай бұрын
This is how tutorials should be. Straight to the point with awesome explanation. After 2 days of frustration finally i found this and everything works.
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Thanks for sharing. Appreciate 🫶. Please subscribe for more amazing tutorials 🪽
@leonardodiasferreira8526
@leonardodiasferreira8526 8 ай бұрын
Thank you so much! This tutorial saved my application!
@ScaleUpSaaS
@ScaleUpSaaS 8 ай бұрын
Thanks for sharing. Please subscribe for more amazing tutorials!
@NEERAJDHIMANADMINHACKERZ
@NEERAJDHIMANADMINHACKERZ 11 ай бұрын
Thanks Buddy .You're an inspiration. ... Awesome Tutorial❤
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Thanks for sharing. Appreciate.
@user-cq4ho7we5c
@user-cq4ho7we5c Ай бұрын
Wonderful video. I really appreciate. Thanks for your help!
@ScaleUpSaaS
@ScaleUpSaaS Ай бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing content 🤠
@hoangnguyenvinh9452
@hoangnguyenvinh9452 11 ай бұрын
Thank you! This tutorial is wonderful.
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Thanks for sharing. Appreciate 🫶
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Subscribe for more amazing tutorials
@ExtractorAI
@ExtractorAI Жыл бұрын
It's helped me a lot! Thank you :)
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Appreciate 👍
@lahiru776
@lahiru776 Ай бұрын
Wooow really great tutorial
@ScaleUpSaaS
@ScaleUpSaaS Ай бұрын
Thanks for sharing. Appreciated! Follow for more amazing tutorials
@DovaCake
@DovaCake 11 ай бұрын
you are a lifesaver thank so much!!! ❤
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Thanks for sharing ! Appreciate. ❤️🫶
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Keep follow for more amazing tutorials
@LeandroGazoli
@LeandroGazoli 7 ай бұрын
thanks, I'm from Brazil, and I couldn't find anything, thank you for sharing this incredible knowledge
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Thanks for sharing. Appreciate. Please subscribe for more amazing tutorials 🫶
@shahidmonowar480
@shahidmonowar480 18 күн бұрын
thanks for making such useful video. loved it.
@ScaleUpSaaS
@ScaleUpSaaS 18 күн бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing content
@asharanas7058
@asharanas7058 3 ай бұрын
thanks man
@ScaleUpSaaS
@ScaleUpSaaS 3 ай бұрын
Thanks for sharing. Appreciate. Please subscribe for more amazing tutorials 👏
@ahmedmrsawy9215
@ahmedmrsawy9215 Ай бұрын
thank you for this amazing video and amazing explaination , I really can't thank you enough , you are amazing
@ScaleUpSaaS
@ScaleUpSaaS Ай бұрын
Thanks for sharing. Appreciated. Subscribe for more amazing tutorials 😎
@khuongprooffical1148
@khuongprooffical1148 Жыл бұрын
Thank you so much I am from Vietnam
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Peace and love mate ❤️ Thanks for sharing!
@AhsanKhan-eb2zb
@AhsanKhan-eb2zb 6 ай бұрын
Legend
@ScaleUpSaaS
@ScaleUpSaaS 6 ай бұрын
Thanks for sharing. Please subscribe for more amazing content 😎
@shrikitamir1
@shrikitamir1 5 ай бұрын
King thank you!
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. Appreciate. Please subscribe for more amazing tutorials ❤️
@elshod_tv
@elshod_tv 7 ай бұрын
best of the best 🔥🔥🔥🔥
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Thanks for sharing. Appreciate. Please follow for more amazing tutorials
@elshod_tv
@elshod_tv 7 ай бұрын
@@ScaleUpSaaS ok bro
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Appreciate!
@mikeouroumis
@mikeouroumis 5 ай бұрын
amazing!!!
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. Please subscribe for more amazing tutorials 🙏
@andrespatino1407
@andrespatino1407 11 ай бұрын
this helped me a lot! thank you!, now to figure out why the ci/cd issue is still happening
@ScaleUpSaaS
@ScaleUpSaaS 11 ай бұрын
Thanks for sharing. Appreciated 🫶 Let me know how I can help. And subscribe to get notified when new tutorials are released
@tegasteve8195
@tegasteve8195 3 ай бұрын
Thanks so much for this video
@ScaleUpSaaS
@ScaleUpSaaS 3 ай бұрын
Thanks for sharing. Appreciated. Please subscribe for more amazing tutorials 🥰
@adolp.h
@adolp.h 2 ай бұрын
Thank you so so much bro, you earned the subscribe and github star
@ScaleUpSaaS
@ScaleUpSaaS 2 ай бұрын
Thanks for sharing my friend. Appreciated 👏👏👏
@gaoguy123
@gaoguy123 5 ай бұрын
man i love you
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
I love you too ❤️ Feel free to support our channel: buymeacoffee.com/scaleupsaas
@shinryuken00
@shinryuken00 7 ай бұрын
Thanks! 🙂
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Thanks for sharing. Please subscribe for more amazing tutorials 💪
@tanishaggarwal1190
@tanishaggarwal1190 Ай бұрын
Thanks you really helpful
@ScaleUpSaaS
@ScaleUpSaaS 29 күн бұрын
Thanks for sharing. Subscribe for more amazing content
@newhorizon3432
@newhorizon3432 4 ай бұрын
It took me 2 days trying to introduce https to my AWS project but failed. After watched your video, I fixed it successfully. Thanks a lot for helping me!
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
Thanks for sharing. Please subscribe for more amazing tutorials
@ManojBarde-fb7el
@ManojBarde-fb7el 4 ай бұрын
Thx soo much sir this video is very helpful to me and it's 100%working.
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
Happy to help. follow for more amazing tutorial
@farrukh28
@farrukh28 Жыл бұрын
Thanks alot
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Keep follow for more amazing tutorials that will be release soon 🤓
@hasankoc1459
@hasankoc1459 2 ай бұрын
nice :)
@ScaleUpSaaS
@ScaleUpSaaS 2 ай бұрын
Thanks for sharing 🙌
@friderichwisniewski8154
@friderichwisniewski8154 Ай бұрын
very good video
@ScaleUpSaaS
@ScaleUpSaaS Ай бұрын
Thanks for sharing. Appreciate. Subscribe for more amazing content ✅
@naimur634
@naimur634 5 ай бұрын
awesome
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. Please subscribe for more amazing content 😎
@SobanSpeaks
@SobanSpeaks Жыл бұрын
Gem
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Appreciate 🤘
@bobselight
@bobselight 4 ай бұрын
Very well done tutorial! Would you recommend adding nginx to pm2 as well as node? Maybe the only thing I thought could be missing but even then I'm not 100% sure.
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
Thanks for sharing. Not need to add nginx to pm2 because it's already managed by the kernel(Linux) system. Please subscribe for more amazing tutorials
@bobselight
@bobselight 4 ай бұрын
@@ScaleUpSaaS makes sense, thanks! Subscribed 😁
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
@@bobselight
@nitsanbh
@nitsanbh 4 ай бұрын
סרטון מוצלח!! תודה! שאלה - אם אני רוצה לדחוף עדכונים לקוד דרך ssh, איך לעשות ריסטרט לפרוסס של node?
@ScaleUpSaaS
@ScaleUpSaaS 4 ай бұрын
אתה יכול לעשות הכל אוטומטי עם גיטהאב תצפה בזה kzbin.info/www/bejne/e4ashmV9o5WZjrM
@milanpoudel3348
@milanpoudel3348 Ай бұрын
Hello i am getting cors error even though i have enabled it in my express server. Do i need to set cors headers in nginx config as well?
@ScaleUpSaaS
@ScaleUpSaaS Ай бұрын
You need to make sure you sending the request from the same domain or allow CORS for your domain. Share you setting please
@AmirBenhadid
@AmirBenhadid 22 күн бұрын
I followed the exact steps, it works fine with get requests but not with post ones, Note: my requests are being sent from another domain that is hosted somewhere else, is there an extra step to go through? this is the error I am getting: Failed to load resource: net::ERR_NAME_NOT_RESOLVED, thank you for answering
@ScaleUpSaaS
@ScaleUpSaaS 22 күн бұрын
Thanks for sharing. I guess that you are encounter with CORS issue. You need to add CORS function to your Node.js backend part that allows your second domain.
@alishaikh2226
@alishaikh2226 6 ай бұрын
Amazing video! You are a life saver #ihsan
@ScaleUpSaaS
@ScaleUpSaaS 6 ай бұрын
Thanks for sharing. Please Subscribe for more amazing tutorial!
@v54potato38
@v54potato38 3 ай бұрын
This is awesome. But I need help, Im using node.js as my backend and react js as my frontend. How am I going to connect my frontend to backend if its already accesible? I've been tring to deploy this full stack app for a month now huhu.
@ScaleUpSaaS
@ScaleUpSaaS 3 ай бұрын
Thanks for sharing. It's very simple. You can upload your React git repository to aws amplify. You can watch this video(kzbin.info/www/bejne/fX6TdISdhKmeq9U) that we did that will explain you how to do it. And then. you just need to send request from your react app to the node.js server. You can also host your react app on aws s3 bucket with static hosting. Let us know if you have more questions. Please subscribe for more amazing tutorials :)
@v54potato38
@v54potato38 3 ай бұрын
@@ScaleUpSaaS Thankyou it's really working finally. Ive been trying to deploy my backend for 2 months to be exact🥴, Thankyou for your help! 💚
@ScaleUpSaaS
@ScaleUpSaaS 3 ай бұрын
You are more than welcome my friend 😊. You can also check our AWS master course for beginners , if you are looking for more technical experience.
@pavanmarapalli5661
@pavanmarapalli5661 3 ай бұрын
same requirement. did you tackle this ?
@ScaleUpSaaS
@ScaleUpSaaS 3 ай бұрын
It's very simple. You can upload your React git repository to aws amplify. You can watch this video(kzbin.info/www/bejne/fX6TdISdhKmeq9U) that we did that will explain you how to do it. And then. you just need to send request from your react app to the node.js server. You can also host your react app on aws s3 bucket with static hosting. Let us know if you have more questions. Please subscribe for more amazing tutorials :)
@wasifalam545
@wasifalam545 9 ай бұрын
hey how can i set up the domain on GoDaddy can you help me please.
@ScaleUpSaaS
@ScaleUpSaaS 9 ай бұрын
Thanks for sharing. Please subscribe for more amazing tutorials. Do you want a zoom call with me?
@muskangupta1977
@muskangupta1977 Жыл бұрын
It works fine on my ip in browser but when I close the terminal the server an the website stop working. How to fix it?
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Did you follow all steps? You need to use PM2 so it will run In the background :)
@muskangupta1977
@muskangupta1977 Жыл бұрын
@@ScaleUpSaaS It still doesn't work.
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
@@muskangupta1977 book a consolation call with. You can find the link in the about me section :)
@muskangupta1977
@muskangupta1977 Жыл бұрын
@@ScaleUpSaaS do i need to use nginxas well?
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
@@muskangupta1977 Yes. Please follow the full instructions!!! :) The tutorial is working. I checked ti few times!
@edgararrizon5736
@edgararrizon5736 5 ай бұрын
im getting trouble at the NGINX step , my service is running with pm2. But after install NGINX and verifying it is running, I cant get to the default NGINX web page
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. You probably miss one of the steps. Please try again. It will work for you for sure. I double checked that. Please subscribe for more amazing tutorials
@edgararrizon5736
@edgararrizon5736 5 ай бұрын
@@ScaleUpSaaS on step 8, are you not demonstrating that the proxy is already set up before adding the location { proxy } information into the /etc/nginx/sites-available/default directory? And should this be my aws ip address for the server i am trying to certify?
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
On step 8 - it need to be a domain address so you will be able to install the free ssl. You can also add Ip instead. but you wont be able to do free ssl i think. for the first part of your question - can you explain again please? I didn't understand @@edgararrizon5736
@edgararrizon5736
@edgararrizon5736 5 ай бұрын
@@ScaleUpSaaS I got everything to work but the default page for nginx never worked, weird. But everything is working now, my first website just went live
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
So Happy to hear that 🥳 You got this!
@Arthurscheff
@Arthurscheff 9 ай бұрын
After install certbot and request for certificate, my aplication start a infinite loop and crash browser with error 301.
@ScaleUpSaaS
@ScaleUpSaaS 9 ай бұрын
Thanks for sharing. I checked again everything. Everything worked perfectly. Please try again from the beginning. Make sure you are not missing any step. Also, please subscribe for more amazing tutorials
@muskangupta1977
@muskangupta1977 Жыл бұрын
I did everythig eccordingly but at 11:05 it the ip doesn't work
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Did you open port 3000 in AWS security group?
@muskangupta1977
@muskangupta1977 Жыл бұрын
@@ScaleUpSaaS Yes. I did port 5000 as my port is running on 5000.
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
@@muskangupta1977 what is the error you are getting?
@Raezon_
@Raezon_ Жыл бұрын
well it was working for me after i changed to a subdomain and installed certbot on a subdomain stopped working
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Thanks for sharing. Just start from the beginning. It’s need to work perfectly. I checked that many time with many domains and subdomains.
@Raezon_
@Raezon_ Жыл бұрын
@@ScaleUpSaaS i will try again may i ask you I've witness port 443 is not running
@Raezon_
@Raezon_ Жыл бұрын
@@ScaleUpSaaS is not that the problem
@Raezon_
@Raezon_ Жыл бұрын
@@ScaleUpSaaS i did everything again and still not working with subdomain
@ScaleUpSaaS
@ScaleUpSaaS Жыл бұрын
Can you share with me the error that you are getting? Are you trying with ubuntu 22 and you follow step by step my instructions?
@medusa121
@medusa121 5 ай бұрын
If i pushed a new code to github, will it reflect the changes or we need to do this all over again? thank you!
@ScaleUpSaaS
@ScaleUpSaaS 5 ай бұрын
Thanks for sharing. Appreciated. Subscribe for more amazing content. Regarding your question , No. but you can follow this next tutorial so it will be YES 😎: GitHub Actions Automate Node.js Deployment to AWS | GitHub Actions Tutorial kzbin.info/www/bejne/e4ashmV9o5WZjrM
@arjundharman9346
@arjundharman9346 9 ай бұрын
After edited the nginx default file i got 404 error in 80 port but 3000 port is working fine
@ScaleUpSaaS
@ScaleUpSaaS 9 ай бұрын
Thanks for sharing. Happy it’s working for you too ❤️🔥 Pleased subscribe for more amazing tutorials that will be released soon 🔜🙏
@bu_fahad
@bu_fahad 7 ай бұрын
Hi. Did you find a solution for this?
@bu_fahad
@bu_fahad 7 ай бұрын
anyone is looking to this. the third line in the location block need be commented out.
@ScaleUpSaaS
@ScaleUpSaaS 7 ай бұрын
Let me know if you need help@@bu_fahad
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Рет қаралды 2,1 МЛН
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Wolfgang's Channel
Рет қаралды 641 М.
How to Enable HTTPS Using a Free SSL Certificate from Certbot
6:56
Akamai Developer
Рет қаралды 72 М.
How to Deploy  Nodejs API server with Nginx as Reverse proxy
18:39
Nginx Reverse Proxy on AWS EC2 Amazon Linux 2
10:26
Sam Meech-Ward
Рет қаралды 36 М.
0x10 HTTPS SSL
22:36
Opeoluwa Adeyeri Codes
Рет қаралды 6 М.
Here's why you need Nginx as a Reverse Proxy for your Node.js app
10:17
Software Developer Diaries
Рет қаралды 13 М.
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
Deploy Node.js Backend on AWS EC2 Windows
17:33
Prograamer
Рет қаралды 10 М.
Reverse proxy nginx letsencrypt tutorial
17:12
Christian Lempa
Рет қаралды 110 М.
Нужен ли робот пылесос?
0:54
Катя и Лайфхаки
Рет қаралды 858 М.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 995 М.
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 1,7 МЛН
Компьютерная мышь за 50 рублей
0:28
dizzi
Рет қаралды 1,7 МЛН
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24