Easily Deploy Full Stack Node.js Apps on AWS EC2 | Step-by-Step Tutorial

  Рет қаралды 126,396

Sam Meech-Ward

Sam Meech-Ward

Күн бұрын

Пікірлер: 218
@nasrularif9570
@nasrularif9570 10 ай бұрын
Finally a video from A to Z... Most video of AWS tutorial I found start from Y to Z...
@govinda399
@govinda399 7 ай бұрын
true!!
@TimothyHuey
@TimothyHuey 8 ай бұрын
Your video was very well done. I was able to deploy a nodejs webapp on my first attempt. Your 30 minute video took me about 7 hours to complete and I was filled with dread when you said at the end that you had a short 7 minute video explaining how to buy a domain name. I knew that was gonna take me 30 mins to an hour. But time is not an issue, understanding is, when it's your first time. I invested the time to thoroughly understand your instructions and deploy the app. It went off well and my app is up now and ready to be tested by users. Well done!!!!
@hen56349
@hen56349 4 ай бұрын
Your comment actually motivated me to spend more time to understand everything in depth. I have also spent 10+ hours on this. Thank You.
@and_ppv
@and_ppv 10 ай бұрын
Stumbled upon the video, and watched the whole thing - at normal speed and rewinding along the way. Great material
@tuscala
@tuscala 11 ай бұрын
Man, this is the greatest tutorial video that I've ever seen!
@SamMeechWard
@SamMeechWard 11 ай бұрын
Thank you 🤗
@ScriptCodec
@ScriptCodec 10 ай бұрын
Ive been waiting all my life to understand what my boss had me do my computer via Google cloud run 😅. This is a hrll of a revision. thanks man.
@rijumamdq
@rijumamdq 18 күн бұрын
Oh man. You've made my day. Not only to explain how to do it but also explained your considerations and a full cheat sheet. You just won a membership. Thank you!
@EzMoney_Treez
@EzMoney_Treez 9 ай бұрын
this is exactly what I was looking for. After taking notes I am excited to practice this many times to ensure foundational knowledge. Awesome stuff!!
@ApeToot
@ApeToot 7 ай бұрын
Got my first "Full Stack" data analysis app up with this video. You helped connect a lot of dots that were not connected by amazons documentation. Thanks!
@SamMeechWard
@SamMeechWard 7 ай бұрын
Glad it helped 🤗
@ApeToot
@ApeToot 5 ай бұрын
@@SamMeechWard It’s been 2 months and i’m starting a company in silicon valley with Azure as a platform you inspired me and we are getting our first investment august 1st and it’s going so well
@DMInverse
@DMInverse Күн бұрын
Flawless! I was able to do this on a AWS Linux 2023 free tier instance, but had to look up the instructions for installing node and caddy, everything else worked like a charm!
@bigbadcatbigbcy2933
@bigbadcatbigbcy2933 8 ай бұрын
Thank yo so much for this tutorial. This is the only working tutorial in the internet and explains everything so good and it only takes 28 minutes
@devaa7076
@devaa7076 11 ай бұрын
Woahhh...Woahhhh. What a great tutorial sir!. I was thinking to learn how to host a server in cloud and what is ssh what is reverse proxy how to map domain name to our server...like man i got all the answers in a single 30min video. Thank you so much for producing these high quality videos and keep on doing em! Hats-off.
@tonyeder4333
@tonyeder4333 Ай бұрын
Like so many before me, THIS VIDEO MADE IT ALL HAPPEN! I had a slightly different stack going into it but this video covered key points I needed to deploy my first application through AWS. Thank you Sam!
@YuelinLiu
@YuelinLiu 5 ай бұрын
谢谢!
@daudsweetland1880
@daudsweetland1880 5 ай бұрын
Really useful and impressive content - I used it to setup an EC2 instance for the first time ever, get my NodeJS Express GraphQL server installed and connecting to a PostGres DB (also on AWS - so skipped the part about installing locally) get the systemctl stuff done, and Paddy for SSL only connection to my server. Took me a few hours, and rewinds to get everything done, but all working fine now! Thank you VERY much!!!!
@michaelgabrielsantos6598
@michaelgabrielsantos6598 18 күн бұрын
This was the best video that I ever watched! Complete and so simple to understand! Thanks a lot!
@khantseithu
@khantseithu 5 ай бұрын
bro doesn't waste a second! quality tutorial
@hamzamalik248
@hamzamalik248 4 ай бұрын
Just straight to the point, no nonsense. Best video ever, that covers everything.
@BasitRaza-w4r
@BasitRaza-w4r 24 күн бұрын
Best video on Deployment on AWS.
@astronautonmars
@astronautonmars 11 ай бұрын
Your videos are always straightforward and I absolutely love them 🥰
@selimhamzaogullar7484
@selimhamzaogullar7484 Ай бұрын
You are amazing. The most detailed explanation I have ever seen. Thank you so much.
@shafthinks
@shafthinks 4 ай бұрын
This is the finest tutorial I have ever seen. Thanks man!!
@georgemwaniki
@georgemwaniki 7 ай бұрын
Your way you explain things makes you one of the best tutor i know, Thank you so much
@yanfung9081
@yanfung9081 11 ай бұрын
You always deliver an amazing KZbin tutorial for the viewers! Your explanations are always spot on! Thank you so much!!! :)
@guranshvirgill4995
@guranshvirgill4995 5 ай бұрын
Hands the best video on AWS on the internet.
@FunnyVideos-ni4iu
@FunnyVideos-ni4iu 3 ай бұрын
Thank you so much! Your video helped me setup a client webapp with ease. You teach so well! Much gratitude to you brother
@AlfredoGuako
@AlfredoGuako 9 ай бұрын
this was incredibly helpful, got my first custom domain web app running!
@HishamElmorsi
@HishamElmorsi 8 ай бұрын
Thanks so much, your way of teaching makes things simpler. Waiting for more videos 💫
@kiranmantha928
@kiranmantha928 Ай бұрын
Great vid. looking forward for your next video on deploying the same using ecs and eks
@XavierTheRapper
@XavierTheRapper 8 ай бұрын
Dope!!!!!
@Charith_LakshanJ
@Charith_LakshanJ 11 ай бұрын
this might be a dumb question. instead of copying your files from the local machine to the remote machine. you can install git on ec2 and pull from repo ?
@khaledsanny4817
@khaledsanny4817 11 ай бұрын
Yeah but it's too much hassle just for this video. You will have to create and delete the repo
@israelafangideh
@israelafangideh 11 ай бұрын
Yes, you can
@snakefinn
@snakefinn 10 ай бұрын
I imagine that there will be some files that won't be located on the repo you may want to copy over. For example .env files
@austinm8823
@austinm8823 8 ай бұрын
​@snakefinn but he didn't copy over the .env files using rsync either lol.
@switchlyrics.
@switchlyrics. 8 ай бұрын
imagine u lose ur git account
@michaelzinzun-zu1py
@michaelzinzun-zu1py 7 ай бұрын
I've been looking for straight forward instructions for months. Thanks to you My site is hosted. Still need to figure out how to install and configure a MongDB database
@jesseajioh1074
@jesseajioh1074 Ай бұрын
I love watching people setup servers from scratch like this. Can i actually do it? Hell naw😂. Would I do it if i could? Maybe, so I'm saving this one for future reference. Awesome video
@bigdinorino
@bigdinorino 10 ай бұрын
at 9:56 how do you go to my app git(main)
@AddictedGamerr
@AddictedGamerr 4 ай бұрын
is it good for production app to use Postgres installed in ec2 than RDS Postgres
@bradleyandrewercole6349
@bradleyandrewercole6349 4 ай бұрын
Thanks man your video is very helpful for my college ✨✨, You deserve more attention 🔥🔥
@hamidkordasti6298
@hamidkordasti6298 6 ай бұрын
Perfect .. pace and content are magically effective. Thanks
@leanderchristmann2981
@leanderchristmann2981 10 ай бұрын
Note on 19:18 that if you installed Node.js differently, like via the NVM Node Version Manager, you have to set different ExecStart path in the .service file - or else you'll receive an error "Active: failed [...] Process: .... ExecStart=/usr/bin/node index.js (code=exited, status=203/EXEC)" when doing "sudo systemctl status myapp.service".
@ichigokuro3986
@ichigokuro3986 10 ай бұрын
what changes are to be made?
@darlinmanuelcasadoperez1092
@darlinmanuelcasadoperez1092 3 ай бұрын
Great tutorial, very well explained, easy to follow and fun to watch. greeting from DR.
@Beyram1501
@Beyram1501 10 ай бұрын
Man your videos are amazing and really clear. you gained a subscriber. Thanks
@veronicasoloduha3009
@veronicasoloduha3009 Ай бұрын
Thank you so much, it was very clear and interesting. Appreciate your work
@jessechou9397
@jessechou9397 5 ай бұрын
Great, great video - loved the explanation with each step too.
@KehindeAdamo
@KehindeAdamo 3 ай бұрын
this is the exact and perfect aws tutorial have been longing for thanks sam meech-ward
@guilhermeviana8543
@guilhermeviana8543 5 ай бұрын
Thank you, you explained in a simple and understandable way!
@AdarshMadrecha
@AdarshMadrecha 8 ай бұрын
Can you do a follow-up video, just covering changes required if using Bun instead of Node Js?
@noahmilliken4259
@noahmilliken4259 10 ай бұрын
can anyone explain to me how the server file and the react app both run? I am having a lot of troulble starting my vite app in the front end directory and the server from the systemD command?
@marvellousadesanya8480
@marvellousadesanya8480 10 ай бұрын
Any alternatives o rysnc? Does not work on git bash
@armaandhanji7151
@armaandhanji7151 11 ай бұрын
Fantastic walkthrough!
@SamMeechWard
@SamMeechWard 11 ай бұрын
Fantastic comment!
@harshabayyaram
@harshabayyaram 4 ай бұрын
@@SamMeechWard Fantastic Reply
@amansagar4948
@amansagar4948 8 ай бұрын
12:32 i clicked the "open address" from AWS console rather than copying the address so it was opening the app in https not http and i was unable to access it. I was stuck on this for a day
@alifakhoury1958
@alifakhoury1958 2 ай бұрын
Dude I've been stuck on this since yesterday and trying everything to fix it. So glad I ran into your comment :p thanks!
@amansagar4948
@amansagar4948 2 ай бұрын
@@alifakhoury1958 haha same same
@SomaStudios
@SomaStudios 4 ай бұрын
Fantastic video. Thanks for the clear explanations!
@Jeremiahking101
@Jeremiahking101 9 ай бұрын
I have an App.js running on port 3000 and a Server.js (Backend) running on port 5000. How would this work?
@kincaidschmitt7811
@kincaidschmitt7811 9 ай бұрын
+1
@vikneswaran6186
@vikneswaran6186 7 ай бұрын
I am assuming that you are having your app.js using server.js files , so that eventually it is able to connect to it how it connect on local computer , because you could see that it is still now being running on local host 3000 so that would be able to access the 5000 port server running on it .
@ismailabouamal2703
@ismailabouamal2703 3 ай бұрын
Amazing! Thanks a lot, this is extremely helpful.
@abpdev
@abpdev 4 ай бұрын
Great video. I would highly recommend AWS CDK or terraform.
@vishnuitsrocking
@vishnuitsrocking 5 ай бұрын
You are awesome!🔥
@divyaratnasami3757
@divyaratnasami3757 5 ай бұрын
Can you clone your repo by installing git on the ec2 instance?
@ismaelsoum6401
@ismaelsoum6401 3 ай бұрын
10/10 video my guy
@lovindigital
@lovindigital 3 ай бұрын
The best ma man!
@1111ah
@1111ah 3 ай бұрын
Such a great video. Thanks!
@josephrosas9291
@josephrosas9291 10 күн бұрын
This was very useful, thanks!
@r1shabhnegi
@r1shabhnegi 5 ай бұрын
Thanks Sam, you are genius.
@sean_reyes
@sean_reyes 4 ай бұрын
Can I use Cloudflare to point the domain to the EC2 instance IP address?
@pranjalgupta659
@pranjalgupta659 Ай бұрын
I had an express app that I deployed on AWS using this video tutorial. I am able to make a CURL request to this but the request using postman yields the error as "Request time out" what might be the issue ?
@bigbrain720
@bigbrain720 8 ай бұрын
broooo this video is so solid
@ecko3383
@ecko3383 8 ай бұрын
You are incredible kind sir. Thank you for this
@ahmedsalman1782
@ahmedsalman1782 Ай бұрын
Amazing content, Thank you ❤
@ojcgv21
@ojcgv21 4 ай бұрын
eaxctly what I need, greate video!
@larrymckuydee5058
@larrymckuydee5058 Ай бұрын
Mind to know why can’t we start the app on port 80 and skip reverse proxy?
@richardbray
@richardbray 6 ай бұрын
This was really good. I leant a lot 👍
@nicapotato7745
@nicapotato7745 2 ай бұрын
Really great guide ❤❤
@alxbanana
@alxbanana 4 ай бұрын
Great video man! I just found your channel and saw 2 and were amazing. Will try and replicate that with a local project I have. Hopefully you will do some terraform and ansible too, if you haven’t done already 😅
@mathiramilo
@mathiramilo 5 ай бұрын
Hi, amazing video! Quick question, can I setup SSL with the Public IPv4 DNS that AWS EC2 provides me?
@samm9435
@samm9435 Ай бұрын
great tutorial but I keep getting stuck at the run build step. It just gets stuck at creating an optimized production build every time
@ammaarpeerbhai9914
@ammaarpeerbhai9914 3 ай бұрын
This was beautiful.
@panzonecadutodifaccia
@panzonecadutodifaccia 4 ай бұрын
quick question, since you have a git repository in the local machine, why did you pull that one inside the app folder instead of transfering the files via terminal?
@Benjaminmcp0
@Benjaminmcp0 7 ай бұрын
Hi I'm new to AWS cloud computing, could you explain why you used EC2 rather than AWS amplify in this instance :)
@HenryOsim
@HenryOsim 11 ай бұрын
great video thanks. Can you create a video about doing same with Terraform please?
@SamMeechWard
@SamMeechWard 11 ай бұрын
Thank you. That's a bit more of a challenge because terraform isn't really used for single instance configuration. You would end up using something like packer to create an ec2 image of the node app, then use terraform to create a new instance based on the image. Terraform is used for immutable infrastructure, which this is not. However, I do have a series of videos on how to use terraform and packer for this kind of stuff, but you'd end up with many ec2 instances instead of just one.
@elitdesign3867
@elitdesign3867 11 ай бұрын
Awesome job! thank you. What about MongoDB and nginx, I hope you explain that someday. Another question, please: How can I get the client's IP (remote ip)?
@cameronadams4366
@cameronadams4366 3 күн бұрын
incredible work
@youssouf.abachouch
@youssouf.abachouch 7 ай бұрын
the best tutorial, thank you so much
@samyip
@samyip 6 ай бұрын
Brilliant tutorial !!
@DanielSumah-y9e
@DanielSumah-y9e 2 ай бұрын
Is it good practice to have your DB on your EC2?
@P.Shivakrishna
@P.Shivakrishna 9 ай бұрын
hey can you explain more about migrate postgres sql db into ec2 how to create migrate.ts file and other things
@courtneynel7433
@courtneynel7433 9 ай бұрын
This is a really great video.
@vivienneobrien4852
@vivienneobrien4852 3 ай бұрын
curious - why dont you have your frontend in client and backend wrapped in a server folder with the package.json etc in the root app? just seems a little odd to have the backend spread out like that then a frontend folder inside of it all
@aidanpatrickkane
@aidanpatrickkane 6 ай бұрын
Awesome video! So from here, where do we go if we want to know how to let our applications scale?
@stefanypc1333
@stefanypc1333 Ай бұрын
Is the code used in this example available? I can't open the GitHub link
@rangaswamireddy8683
@rangaswamireddy8683 11 ай бұрын
Fantastic the way you explained. And i request you make a tutorial on pm2 load balancer etc... thanks
@DheerajKumar-ik4mi
@DheerajKumar-ik4mi 9 ай бұрын
Have you put the frontend requests to localhost or a specific IP?
@jcarneiro91
@jcarneiro91 7 ай бұрын
if i already have a .env on my project directory to be consumed by my node app I still have to do the env variables part for systemd ?
@ffcorona9856
@ffcorona9856 4 ай бұрын
Very Helpful. But can we Run Multiple Node Js Application at a time ?
@tigana
@tigana 4 ай бұрын
saving my life i was abou to have a stroke
@hamzaamentag6810
@hamzaamentag6810 5 ай бұрын
Thanks. This is super cool 👍🏻
@Nahmad6236
@Nahmad6236 Ай бұрын
Can we just use docker instead going through all these steps
@khashe
@khashe 9 ай бұрын
This was really great.
@mohammedhamza5242
@mohammedhamza5242 5 ай бұрын
I am getting an error in windows that rsync command not found!! Any help will be appreciated. Thanks.
@Construction-agencyCoUk
@Construction-agencyCoUk 3 ай бұрын
Really great tut
@siddheshrane6797
@siddheshrane6797 5 ай бұрын
hi, will these steps work fine for a socket io or websocket node server to deploy of EC2?
@manuel.blanco
@manuel.blanco 8 ай бұрын
Thanks, this helped me a lot!!
@lebronjaimeslannister
@lebronjaimeslannister 11 ай бұрын
thank you for the vid, would you explain how to protect ec2 against something like ddos? i’d like to try ec2 but in fear of overcharging by aws
@SamMeechWard
@SamMeechWard 11 ай бұрын
ddos wouldn't increase the cost of a single ec2 instance like this. It would grind your app to a halt, but no additional costs. I'm pretty sure all services, including ec2, are protected from basic ddos attacks with aws shield aws.amazon.com/shield/
@fathismael
@fathismael 3 ай бұрын
Hello, my app is running in a docker container inside ec2. Can i do the same thing with an app running inside docker container ? I purchased a domain name from Namecheap, i installed caddy and i did everything you are showing us in this tutorial but i'm getting an error saying : "This site cannot provide a secure connection" and with error type : "ERR_SSL_PROTOCOL_ERROR" in Chrome and Edge and "SSL_ERROR_INTERNAL_ERROR_ALERT" in Firefox
@WIBEDRILLMusic
@WIBEDRILLMusic 8 ай бұрын
Hi Sam, can you make one video for the Serverless approach??
Setting up a production ready VPS is a lot easier than I thought.
29:50
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 129 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Storing Images in S3 from Node Server
39:59
Sam Meech-Ward
Рет қаралды 103 М.
What is Amazon EC2 | AWS EC2 Tutorial for Beginners | EC2 Instance
18:08
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,6 МЛН
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН