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

  Рет қаралды 114,361

Sam Meech-Ward

Sam Meech-Ward

Күн бұрын

Пікірлер: 210
@nasrularif9570
@nasrularif9570 9 ай бұрын
Finally a video from A to Z... Most video of AWS tutorial I found start from Y to Z...
@govinda399
@govinda399 5 ай бұрын
true!!
@TimothyHuey
@TimothyHuey 7 ай бұрын
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 3 ай бұрын
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 9 ай бұрын
Stumbled upon the video, and watched the whole thing - at normal speed and rewinding along the way. Great material
@ScriptCodec
@ScriptCodec 9 ай бұрын
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.
@tonyeder4333
@tonyeder4333 6 күн бұрын
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!
@ApeToot
@ApeToot 6 ай бұрын
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 6 ай бұрын
Glad it helped 🤗
@ApeToot
@ApeToot 4 ай бұрын
@@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
@EzMoney_Treez
@EzMoney_Treez 8 ай бұрын
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!!
@tuscala
@tuscala 10 ай бұрын
Man, this is the greatest tutorial video that I've ever seen!
@SamMeechWard
@SamMeechWard 10 ай бұрын
Thank you 🤗
@devaa7076
@devaa7076 10 ай бұрын
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.
@bigbadcatbigbcy2933
@bigbadcatbigbcy2933 7 ай бұрын
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
@daudsweetland1880
@daudsweetland1880 4 ай бұрын
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!!!!
@jesseajioh1074
@jesseajioh1074 20 күн бұрын
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
@khantseithu
@khantseithu 4 ай бұрын
bro doesn't waste a second! quality tutorial
@selimhamzaogullar7484
@selimhamzaogullar7484 9 күн бұрын
You are amazing. The most detailed explanation I have ever seen. Thank you so much.
@astronautonmars
@astronautonmars 10 ай бұрын
Your videos are always straightforward and I absolutely love them 🥰
@georgemwaniki
@georgemwaniki 6 ай бұрын
Your way you explain things makes you one of the best tutor i know, Thank you so much
@hamzamalik248
@hamzamalik248 3 ай бұрын
Just straight to the point, no nonsense. Best video ever, that covers everything.
@michaelzinzun-zu1py
@michaelzinzun-zu1py 5 ай бұрын
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
@AdarshMadrecha
@AdarshMadrecha 7 ай бұрын
Can you do a follow-up video, just covering changes required if using Bun instead of Node Js?
@bradleyandrewercole6349
@bradleyandrewercole6349 3 ай бұрын
Thanks man your video is very helpful for my college ✨✨, You deserve more attention 🔥🔥
@yanfung9081
@yanfung9081 10 ай бұрын
You always deliver an amazing KZbin tutorial for the viewers! Your explanations are always spot on! Thank you so much!!! :)
@HishamElmorsi
@HishamElmorsi 7 ай бұрын
Thanks so much, your way of teaching makes things simpler. Waiting for more videos 💫
@kiranmantha928
@kiranmantha928 27 күн бұрын
Great vid. looking forward for your next video on deploying the same using ecs and eks
@guranshvirgill4995
@guranshvirgill4995 4 ай бұрын
Hands the best video on AWS on the internet.
@FunnyVideos-ni4iu
@FunnyVideos-ni4iu 2 ай бұрын
Thank you so much! Your video helped me setup a client webapp with ease. You teach so well! Much gratitude to you brother
@abpdev
@abpdev 3 ай бұрын
Great video. I would highly recommend AWS CDK or terraform.
@AlfredoGuako
@AlfredoGuako 8 ай бұрын
this was incredibly helpful, got my first custom domain web app running!
@shafthinks
@shafthinks 3 ай бұрын
This is the finest tutorial I have ever seen. Thanks man!!
@Charith_LakshanJ
@Charith_LakshanJ 10 ай бұрын
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 10 ай бұрын
Yeah but it's too much hassle just for this video. You will have to create and delete the repo
@israelafangideh
@israelafangideh 10 ай бұрын
Yes, you can
@snakefinn
@snakefinn 9 ай бұрын
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 7 ай бұрын
​@snakefinn but he didn't copy over the .env files using rsync either lol.
@switchlyrics.
@switchlyrics. 7 ай бұрын
imagine u lose ur git account
@darlinmanuelcasadoperez1092
@darlinmanuelcasadoperez1092 2 ай бұрын
Great tutorial, very well explained, easy to follow and fun to watch. greeting from DR.
@aidanpatrickkane
@aidanpatrickkane 5 ай бұрын
Awesome video! So from here, where do we go if we want to know how to let our applications scale?
@andreabiaggi3198
@andreabiaggi3198 10 ай бұрын
Awesome job! Would be great to see how to move from this infrastructure to one more scalable, with a dedicated RDS instance, a load balancer and maybe different ec2 instances for different microservices, maybe using terraform. But as you said this is foundational and it's very well done!
@4Funzzies
@4Funzzies 4 ай бұрын
Would be the ultimate video!
@veronicasoloduha3009
@veronicasoloduha3009 2 күн бұрын
Thank you so much, it was very clear and interesting. Appreciate your work
@Beyram1501
@Beyram1501 9 ай бұрын
Man your videos are amazing and really clear. you gained a subscriber. Thanks
@guilhermeviana8543
@guilhermeviana8543 4 ай бұрын
Thank you, you explained in a simple and understandable way!
@AddictedGamerr
@AddictedGamerr 3 ай бұрын
is it good for production app to use Postgres installed in ec2 than RDS Postgres
@KehindeAdamo
@KehindeAdamo 2 ай бұрын
this is the exact and perfect aws tutorial have been longing for thanks sam meech-ward
@rangaswamireddy8683
@rangaswamireddy8683 10 ай бұрын
Fantastic the way you explained. And i request you make a tutorial on pm2 load balancer etc... thanks
@HenryOsim
@HenryOsim 10 ай бұрын
great video thanks. Can you create a video about doing same with Terraform please?
@SamMeechWard
@SamMeechWard 10 ай бұрын
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.
@hamidkordasti6298
@hamidkordasti6298 5 ай бұрын
Perfect .. pace and content are magically effective. Thanks
@dianab536
@dianab536 5 ай бұрын
Can you please make video setting up Nginx to Nextjs? Definitely an insightful video, thank you for introducing me to caddy. 😊
@elitdesign3867
@elitdesign3867 10 ай бұрын
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)?
@alxbanana
@alxbanana 2 ай бұрын
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 😅
@thequang9234
@thequang9234 10 ай бұрын
top notch content Sam! Would you care to explain what you meant by 'I have a migration system on my app". Why did you have to run npm run migrate? Thanks!
@ffcorona9856
@ffcorona9856 3 ай бұрын
Very Helpful. But can we Run Multiple Node Js Application at a time ?
@anjanshomodder6463
@anjanshomodder6463 9 ай бұрын
Really helpful video. Would be nice if you could create a video about how to automate all these stuff with github actions. Thanks
@tigana
@tigana 3 ай бұрын
saving my life i was abou to have a stroke
@somnathgolui2912
@somnathgolui2912 9 ай бұрын
Great video! Can you also tell us how to do continuous delivery?
@dekooks1543
@dekooks1543 10 ай бұрын
banging video mate ! Do you mind if I ask what software you use to edit your videos ? The transitions and zoom effects are top class
@SamMeechWard
@SamMeechWard 10 ай бұрын
I use a few different pieces of software, but my main video editing is done in Camtasia. It's pretty easy to use and all the basics are covered in their intro 45 minute video: kzbin.info/www/bejne/d3aUeZmvYt6qatU
@jessechou9397
@jessechou9397 4 ай бұрын
Great, great video - loved the explanation with each step too.
@marioshadj8409
@marioshadj8409 10 ай бұрын
Thanks for the video! Can you make a video on how to handle new version of the app without downtime?
@SamMeechWard
@SamMeechWard 10 ай бұрын
With one server, you wold always experience some amount of downtime. It could be minimal though, just the amount of time it takes to restart caddy, so a few milliseconds. The only way I know of to get absolute 0 downtime is to use multiple ec2 instances with a load balancer, which is much more complex
@jitxhere
@jitxhere 10 ай бұрын
Wow this is good. I have questions and suggestion. Does that systemd replaces the use of pm2? Why didn't you use pm2 Suggestion: Moving forward with this with setting up basic testing and CI CD.
@KratosCY
@KratosCY 8 ай бұрын
Good question and suggestion.
@jitxhere
@jitxhere 8 ай бұрын
I am currently using pm2...For CI CD I found this kzbin.info/www/bejne/nJzdoaytoa-Wg6M@@KratosCY
@erlend1587
@erlend1587 10 ай бұрын
Great tutorial! I did something similar using Linode, but used nginx instead of Caddy. Caddy seem like a simpler choice with the automated ssl.
@SamMeechWard
@SamMeechWard 10 ай бұрын
I only recently started using it, but it's been awesome and I trust the community behind it
@SomaStudios
@SomaStudios 3 ай бұрын
Fantastic video. Thanks for the clear explanations!
@bigdinorino
@bigdinorino 9 ай бұрын
at 9:56 how do you go to my app git(main)
@mathiramilo
@mathiramilo 4 ай бұрын
Hi, amazing video! Quick question, can I setup SSL with the Public IPv4 DNS that AWS EC2 provides me?
@marvellousadesanya8480
@marvellousadesanya8480 9 ай бұрын
Any alternatives o rysnc? Does not work on git bash
@leanderchristmann2981
@leanderchristmann2981 9 ай бұрын
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 9 ай бұрын
what changes are to be made?
@noahmilliken4259
@noahmilliken4259 9 ай бұрын
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?
@WIBEDRILLMusic
@WIBEDRILLMusic 7 ай бұрын
Hi Sam, can you make one video for the Serverless approach??
@ismailabouamal2703
@ismailabouamal2703 2 ай бұрын
Amazing! Thanks a lot, this is extremely helpful.
@ecko3383
@ecko3383 7 ай бұрын
You are incredible kind sir. Thank you for this
@samm9435
@samm9435 22 күн бұрын
great tutorial but I keep getting stuck at the run build step. It just gets stuck at creating an optimized production build every time
@armaandhanji7151
@armaandhanji7151 10 ай бұрын
Fantastic walkthrough!
@SamMeechWard
@SamMeechWard 10 ай бұрын
Fantastic comment!
@harshabayyaram
@harshabayyaram 3 ай бұрын
@@SamMeechWard Fantastic Reply
@r1shabhnegi
@r1shabhnegi 4 ай бұрын
Thanks Sam, you are genius.
@Jeremiahking101
@Jeremiahking101 8 ай бұрын
I have an App.js running on port 3000 and a Server.js (Backend) running on port 5000. How would this work?
@kincaidschmitt7811
@kincaidschmitt7811 8 ай бұрын
+1
@vikneswaran6186
@vikneswaran6186 6 ай бұрын
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 .
@ahmedsalman1782
@ahmedsalman1782 2 күн бұрын
Amazing content, Thank you ❤
@EmanuelCovelli
@EmanuelCovelli 7 ай бұрын
I really would like a similar tutorial that uses Docker on ec2
@elcanaldeflo
@elcanaldeflo Ай бұрын
thanks a lot bro, i can configure mi ssl :)
@richardbray
@richardbray 5 ай бұрын
This was really good. I leant a lot 👍
@MilindMishra
@MilindMishra 9 ай бұрын
Great work! but isnt pm2 a better practice instead of systemd ?
@MilindMishra
@MilindMishra 9 ай бұрын
latter in the video i understood the mindset of you teaching the basics first so it makes sense, thank you!
@1111ah
@1111ah 2 ай бұрын
Such a great video. Thanks!
@Benjaminmcp0
@Benjaminmcp0 6 ай бұрын
Hi I'm new to AWS cloud computing, could you explain why you used EC2 rather than AWS amplify in this instance :)
@vishnuitsrocking
@vishnuitsrocking 4 ай бұрын
You are awesome!🔥
@pranjalgupta659
@pranjalgupta659 5 күн бұрын
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 ?
@nicapotato7745
@nicapotato7745 Ай бұрын
Really great guide ❤❤
@sunilmaurya6594
@sunilmaurya6594 10 ай бұрын
Can u please make video on automatic things? Would be appreciated 🙏
@arieladalid9910
@arieladalid9910 5 ай бұрын
Really nice explained thank you
@ojcgv21
@ojcgv21 3 ай бұрын
eaxctly what I need, greate video!
@panzonecadutodifaccia
@panzonecadutodifaccia 3 ай бұрын
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?
@XavierTheRapper
@XavierTheRapper 7 ай бұрын
Dope!!!!!
@Nahmad6236
@Nahmad6236 6 күн бұрын
Can we just use docker instead going through all these steps
@DanielSumah-y9e
@DanielSumah-y9e Ай бұрын
Is it good practice to have your DB on your EC2?
@youssouf.abachouch
@youssouf.abachouch 6 ай бұрын
the best tutorial, thank you so much
@divyaratnasami3757
@divyaratnasami3757 4 ай бұрын
Can you clone your repo by installing git on the ec2 instance?
@P.Shivakrishna
@P.Shivakrishna 8 ай бұрын
hey can you explain more about migrate postgres sql db into ec2 how to create migrate.ts file and other things
@stefanypc1333
@stefanypc1333 Күн бұрын
Is the code used in this example available? I can't open the GitHub link
@yemam4156
@yemam4156 6 ай бұрын
Thanks bro a lot for this tutorial
@amansagar4948
@amansagar4948 7 ай бұрын
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 Ай бұрын
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 Ай бұрын
@@alifakhoury1958 haha same same
@MilindMishra
@MilindMishra 9 ай бұрын
quick question can we not add our git credentials to the server and then use them to pull changes and deploy from the server or if that is not a standard practice ?
@bigbrain720
@bigbrain720 7 ай бұрын
broooo this video is so solid
@hamzaamentag6810
@hamzaamentag6810 4 ай бұрын
Thanks. This is super cool 👍🏻
@texlayt7486
@texlayt7486 5 ай бұрын
thank you so much it helped a lot ✌
@Construction-agencyCoUk
@Construction-agencyCoUk 2 ай бұрын
Really great tut
@ammaarpeerbhai9914
@ammaarpeerbhai9914 2 ай бұрын
This was beautiful.
@ShreyasSreedhar2
@ShreyasSreedhar2 7 ай бұрын
Super helpful, Thanks!
@larrymckuydee5058
@larrymckuydee5058 21 күн бұрын
Mind to know why can’t we start the app on port 80 and skip reverse proxy?
@ismaelsoum6401
@ismaelsoum6401 2 ай бұрын
10/10 video my guy
@maniotto2307
@maniotto2307 Ай бұрын
Step Brother I'm stuck🥰😍😘
@vivienneobrien4852
@vivienneobrien4852 2 ай бұрын
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
Setting up a production ready VPS is a lot easier than I thought.
29:50
Storing Images in S3 from Node Server
39:59
Sam Meech-Ward
Рет қаралды 100 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 29 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 127 М.
Deploying MERN App With Docker Compose
29:13
Kaliteli Yazılımcı
Рет қаралды 12 М.
Deploy Node app on AWS EC2 Amazon Linux 2
14:51
Sam Meech-Ward
Рет қаралды 86 М.
DiagramGPT - Honest Review of Eraser AI
8:22
Sam Meech-Ward
Рет қаралды 146 М.
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
Full Node.js Deployment - NGINX, SSL With Lets Encrypt
31:25
Piyush Garg
Рет қаралды 72 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,5 МЛН
Full NGINX Tutorial - Demo Project with Node.js, Docker
1:11:40
TechWorld with Nana
Рет қаралды 39 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 29 МЛН