Deploying Full Stack App onto Ubuntu/AWS: Postgres, Express, React, Node + SSL Let's Encrypt

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 135

  • @productmeow
    @productmeow 2 ปีที่แล้ว +8

    If you see "Forbidden 403" after setting up your nginx
    You need to do the following
    - sudo vim ~/etc/nginx/nginx.config
    - Comment out the first line "user www-data"
    - Add a new line directly below the commented out line with this content "user ubuntu;" (without the double quotes)
    - Run command: sudo systemctl restart nginx
    - You can now view your site
    Reference timestamp: 1:04:41

    • @tylergreen6453
      @tylergreen6453 2 ปีที่แล้ว

      THANK YOU

    • @adelalqaabi4642
      @adelalqaabi4642 ปีที่แล้ว

      I'm getting 405 when i try to login in my React app
      {message: 'Request failed with status code 405', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}

    • @steven2633
      @steven2633 ปีที่แล้ว

      Thanks so much, this helped me in my last steps of debugging.

    • @anusree2347
      @anusree2347 ปีที่แล้ว

      Thank you so much! It solved the 500 Internal Server Error also

    • @productmeow
      @productmeow 5 หลายเดือนก่อน

      @user-cc7rg1bv8i glad it helped !

  • @srikanththallapally1793
    @srikanththallapally1793 2 หลายเดือนก่อน

    Sanjeev Thiyagarajan,
    I am writing to express my sincere gratitude on deploying a PerN stack application to AWS. Your detailed explanation and step-by-step guidance were invaluable in helping me successfully deploy my own project.
    Your expertise and clear presentation style made the entire process much easier to understand.
    Thank you again for creating such a valuable resource.

  • @abdulibrahim6035
    @abdulibrahim6035 2 ปีที่แล้ว +2

    This is the best and most comprehensive video on AWS deployment I've ever seen! Thank you! Subscribed!

  • @sanzaydahal6760
    @sanzaydahal6760 3 ปีที่แล้ว +18

    Hi Sanjeev Thanks for this awesome content. However, this doesn't seems to be a complete/comprehensive deployment tutorial. Can you please include general upgrading strategy? Like creating CI/CD Pipeline.....

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว +36

    Please make the deployment using docker or kubernetes :)

  • @lunardesigner6779
    @lunardesigner6779 3 หลายเดือนก่อน

    Hey man, just want to say your video is awesome and clear. It's like a hidden gem. I wish many people would see this. Thanks man.

  • @newsscript7477
    @newsscript7477 2 หลายเดือนก่อน

    Hey Sanjeev. I have never commented on any TH-cam video EVER! But for you I’m proud to say you get my first comment. Bro! You have done exceedingly well. Thank you for the specific detailed explanation. Let me know how to buy you coffee or something. 👏👏👏

  • @fredericolivier7896
    @fredericolivier7896 3 ปีที่แล้ว +6

    You need a Patreon account man. I got to support you with this. Lifesaver man.

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  3 ปีที่แล้ว +3

      Lol technically I do have one. I just have no idea what kind of content to put up on there

    • @fredericolivier7896
      @fredericolivier7896 3 ปีที่แล้ว +1

      @@SanjeevThiyagarajan well let me know man that was some great stuff.

    • @rebeccaindy
      @rebeccaindy 3 ปีที่แล้ว

      Same

  • @tulsicreation2026
    @tulsicreation2026 2 ปีที่แล้ว

    One of best video and documentation for fullstack project deployment on AWS, i follow all instruction explain by sanjeev and it works, i learn lot. thank for sharing this supperb knowledge.

  • @Avocado.777
    @Avocado.777 ปีที่แล้ว +2

    Sanjeev, I am immensely grateful for your effort in creating this masterpiece. I truly hope your journey reaches even greater heights; you have a great potential within you. Thanks.

  • @productmeow
    @productmeow 2 ปีที่แล้ว +2

    If you see "Permissions 0644 for '' are too open." when trying to SSH using the pem file
    Run this command: chmod 400
    Reference timeline: 20:09

  • @mirsha3054
    @mirsha3054 4 ปีที่แล้ว +8

    Man, I wanna thank you one million, this is solid content. You really have quality implementation. I have watched All and learn a lot from you :)

    • @nameless_9504
      @nameless_9504 4 ปีที่แล้ว

      Yep that's true !!

    • @ayencoscolfield3312
      @ayencoscolfield3312 3 ปีที่แล้ว

      you are correct on that have been blessed a lot through his videos trainings

  • @soultouchingsongs
    @soultouchingsongs 3 ปีที่แล้ว +4

    Thank you so much Sanjeev 🙏. The best deployment tutorial I have ever seen on TH-cam👍

  • @raafi101
    @raafi101 3 ปีที่แล้ว

    Thank you sooooo much for this. I was stuck trying to deploy my PERN app for days and then I found this video.

  • @jamesikubi6831
    @jamesikubi6831 3 ปีที่แล้ว +1

    This is one of the most informative videos I've ever watched. Thanks so much Sanjeev.

  • @friendlyreviewer840
    @friendlyreviewer840 ปีที่แล้ว

    OMG i was so stuck. Your tutorial fixed a problem ive been working on for a week. Thankyou so much!!

  • @JoakimTeixeira
    @JoakimTeixeira 4 ปีที่แล้ว +3

    One of the best channels out there! The video descriptions are priceless hahahaha Keep it up man, you're doing awesome work! More subs will come.

  • @tarnum113
    @tarnum113 2 ปีที่แล้ว +1

    One of the best tutorials ever! Thank you! Just deployed my first ever website!

  • @МаксимКоваль-т4о
    @МаксимКоваль-т4о 3 ปีที่แล้ว +1

    Best recorded tutorial I've ever seen. You are the best, thank you!

  • @emiliorojas583
    @emiliorojas583 2 ปีที่แล้ว

    man, you can't imagine how grateful i am.
    your video was the light i was looking for so long
    i appreciate so much. your content quality is definitely godlike

  • @kvtys
    @kvtys ปีที่แล้ว

    I hope you get the nobel peace prize for this

  • @Vasko10100
    @Vasko10100 3 ปีที่แล้ว +2

    I'm begging you, please make a PAID course on React, Node, PostGres, Docker, AWS etc etc.
    I will repeat once again: This is pure GOLD! I want to give you money man! Please make a full paid course!

    • @severalpens
      @severalpens 3 ปีที่แล้ว +1

      Seconded. I can't believe how ridiculously hard this task was. I was starting to look like a real idiot promising something I couldn't do. This tutorial saved me.

  • @411sev
    @411sev ปีที่แล้ว

    Thank you. That's the tutorial I was looking for. But I couldn't ssh into my ec2.

  • @h.m.zakariasumon1644
    @h.m.zakariasumon1644 2 ปีที่แล้ว

    This video is very useful for us who are self-learning. Thanks for this awesome video.

  • @Anarchy_OW
    @Anarchy_OW ปีที่แล้ว +3

    I can't thank you enough for this, honestly. Just thank you so much.

    • @kvtys
      @kvtys ปีที่แล้ว

      LITERALLY. You are incredible man. Life saver and a half.

  • @toshvelaga
    @toshvelaga 3 ปีที่แล้ว

    This is one of the most useful dev videos i keep coming back to

  • @randomcell708
    @randomcell708 3 ปีที่แล้ว +5

    Great tutorial, consise and clear. Would you be able to expand on this to show how to deploy this app using the AWS pipeline?

  • @productmeow
    @productmeow 2 ปีที่แล้ว

    For your new domain, make sure you setup the A record and CNAME record.
    A record
    - Host: @
    - Value:
    C Name
    - Host: www
    - Value:

  • @TheInphinion
    @TheInphinion 4 ปีที่แล้ว +1

    Thank you so much for creating this video. I loved the first part with the Yelp Clone and learned so much.

  • @nevergo9884
    @nevergo9884 ปีที่แล้ว +1

    This is the greatest tutorial I ever seen. Thank you so much for your time and help!

  • @TheInphinion
    @TheInphinion 4 ปีที่แล้ว +4

    Deploy with docker on aws please.

  • @anandhukraju8044
    @anandhukraju8044 3 ปีที่แล้ว

    Can you make a video on some of the next steps like securing the DB and stuff like you mentioned towards the end of the video? Thanks for this thoh! :)

  • @TheRastishopper
    @TheRastishopper ปีที่แล้ว

    For those struggling in the end:
    1. Make sure node modules are audited,
    2. If your website is displaying, but without anything from the database, make sure that pm2 has your environment variables. I had to update pm2 and then delete and start the pm2 app again.

    • @logeshs5412
      @logeshs5412 11 หลายเดือนก่อน

      how to do it pm2 thing?

    • @logeshs5412
      @logeshs5412 11 หลายเดือนก่อน

      whether it is enough to restart pm2?

  • @internetexplorer7880
    @internetexplorer7880 2 ปีที่แล้ว

    Thank you for your videos, can you make a tutorial to deploy a multi container project into heroku

  • @nationbuilding5319
    @nationbuilding5319 2 ปีที่แล้ว

    as always your videos are excellent!! Thanks for the knowledge

  • @BGPNetworks
    @BGPNetworks 3 ปีที่แล้ว

    Dude!! great explanation.. Must have missed something but which development server we're talking abt for the pg_dump?

  • @jayprmedia
    @jayprmedia 3 ปีที่แล้ว

    Can you please make a tutorial with Next js instead of React? I would like to use Next js for better SEO. It would be really great !

  • @farrukhatabekov595
    @farrukhatabekov595 3 ปีที่แล้ว

    Thank you very much for such a golden resource ! All the best .

  • @austinlee_inc
    @austinlee_inc ปีที่แล้ว +2

    Hi Sanjeev, amazing walkthrough - for some reason after I update the server block file in my nginx, instead of seeing my website, I get a 500 internal service error. Checking my error logs it seems to say the build failed/failed 13: permission Denied... do you know what could be the issue with my deployment?

    • @brianma875
      @brianma875 ปีที่แล้ว

      Got the same error. Could you tell me how did you fixed it?

    • @anusree2347
      @anusree2347 ปีที่แล้ว

      ​@@brianma875
      As mentioned by @productmeow,
      You need to do the following
      - sudo vim ~/etc/nginx/nginx.config
      - Comment out the first line "user www-data"
      - Add a new line directly below the commented out line with this content "user ubuntu;" (without the double quotes)
      - Run command: sudo systemctl restart nginx
      - You can now view your site

  • @saint1yusuf
    @saint1yusuf 2 ปีที่แล้ว +1

    58:20 I can't see this page. Where is the problem? I couldn't solve this problem for a week!

  • @bot74774
    @bot74774 ปีที่แล้ว

    Would you make some tutorials that when you make some updates on your codes, nginx will auto update the code?

  • @hieubuict96
    @hieubuict96 2 ปีที่แล้ว

    the text editor you are using in the video above is beautiful, can you tell me what it is? thanks

  • @dinindukanchana8554
    @dinindukanchana8554 3 ปีที่แล้ว

    This is really informative. You saved a lot of my time. Thank you very much.

  • @wlcheng
    @wlcheng 3 ปีที่แล้ว

    Thank you so much for your tutorial. Learned so much!

  • @XiagraBalls
    @XiagraBalls 2 ปีที่แล้ว

    This was long, but well worth it. 👍🏻

  • @mreddygi
    @mreddygi 8 หลายเดือนก่อน

    thank you for this sir, it helped me a lot.

  • @satishlute9376
    @satishlute9376 ปีที่แล้ว

    ❤❤ , ur very fantastic teacher..

  • @topleetcoder8610
    @topleetcoder8610 3 ปีที่แล้ว +1

    Incredible tutorial! Thank you so much :)

  • @zachsanchez1644
    @zachsanchez1644 3 ปีที่แล้ว

    ran into an error around 1:00:00 , very clear and concise - app was fully functional - didn't get any errors from part one or this part until now /: I sent you a twitter dm if you don't mind helping me out

    • @zachsanchez1644
      @zachsanchez1644 3 ปีที่แล้ว

      wanted to apologize as it was my fault! i was deploying on digital ocean instead of AWS and skipped over adding HTTP/HTTPS to my inbound rules - as well as had to update directory rules because i used the root user instead of ssh access !

  • @ashutoshpanda4336
    @ashutoshpanda4336 3 ปีที่แล้ว

    Great video but in all production front-end app on S3 with domain and the backend on EC2 with creating a subdomain... Can you please do that

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  3 ปีที่แล้ว +1

      Yeah I can do that. I'll try to get something up in the next couple of weeks

    • @ashutoshpanda4336
      @ashutoshpanda4336 3 ปีที่แล้ว

      Thank you so much... I'm struggling with this... Waiting for the video... Thank you ☺️

  • @jaburu01
    @jaburu01 3 ปีที่แล้ว +1

    This tutorial is just amazing!

  • @abrahammolina4012
    @abrahammolina4012 11 หลายเดือนก่อน +1

    hola alguien sabe de donde sale el .pem necesito ayuda

  • @ernestkumm6825
    @ernestkumm6825 9 หลายเดือนก่อน

    hi Sanjeev, once again great video thanks man.... I have tried multiple angles on a poitn I got stuck at, can you please guide me
    Error: Cannot find module './out/index'
    I get this error when running "npm run build" on client directory, the build directory does not get build, I installed Node.js v21.6.2

  • @ThenavigoBuilders
    @ThenavigoBuilders 2 ปีที่แล้ว

    Great tutorial, very useful. Thanks

  • @dan6054
    @dan6054 3 ปีที่แล้ว

    1:35:24 "No don't send me email"
    LEGEND

  • @chiragagrawal6205
    @chiragagrawal6205 6 หลายเดือนก่อน

    How was your backend server running even before setting the env variables , how it got connected to db without credentials ?

  • @nohelia6843
    @nohelia6843 11 หลายเดือนก่อน

    how to configure pg admin in ubuntu server to continue updating db?

  • @SH-lt2iv
    @SH-lt2iv 4 ปีที่แล้ว

    MERN project next please.

  • @Deepak-tx3rw
    @Deepak-tx3rw ปีที่แล้ว

    i need urgent help to deploy PERN stack on hostinger Ubuntu server or Windows VPS, Please help me

  • @izaiasaraujogomesdasilva3354
    @izaiasaraujogomesdasilva3354 3 ปีที่แล้ว

    Please make the deployment using docker or kubernetes²

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  3 ปีที่แล้ว

      Just dropped a video on docker an how to deploy using docker. We won't be deploying pern stack specifically, but it goes over the core concepts

  • @adesojialu1051
    @adesojialu1051 10 หลายเดือนก่อน

    my postgres database exists on aws instance already, what do i do?

  • @pubghackertamilan8679
    @pubghackertamilan8679 หลายเดือนก่อน

    Thank you god❤

  • @naisuuh8566
    @naisuuh8566 หลายเดือนก่อน

    so uhh where is the db file with those value tho? Its not in github

  • @smarttech743
    @smarttech743 2 ปีที่แล้ว

    How can I connect RDS postgres db to your nodejs app when I don't want to install postgress on virtual machine.

  • @jackpetersen8990
    @jackpetersen8990 ปีที่แล้ว

    You are a golden god.

  • @nameless_9504
    @nameless_9504 4 ปีที่แล้ว +1

    Bro please connect database to RDS please it will be more helpful

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  4 ปีที่แล้ว +2

      dam i was thinking about doing that for the video, but i figured more people would want be interested in deploying to a single VM. That way they can use the same steps on a digital ocean droplet. I'll definately be making more deployment tutorials in the future and will have rds involved

    • @nameless_9504
      @nameless_9504 4 ปีที่แล้ว

      @@SanjeevThiyagarajan thank you brother. Please involve RDS and btw your creating a great content 👍

  • @dawoodvaleed5848
    @dawoodvaleed5848 3 ปีที่แล้ว

    Great video, really appreciate the help

  • @HIghtowerSever
    @HIghtowerSever 3 ปีที่แล้ว

    It's a great tutorial. Thanks a lot!

  • @nevendrean5772
    @nevendrean5772 4 ปีที่แล้ว +1

    solid, clean, detailled ***

  • @mcm0125
    @mcm0125 ปีที่แล้ว +1

    For people stuck at the end with RestaurantDetail pages not rendering, change the prod. path at 14:17 from "api/v1/restaurants" to "/api/v1/restaurants" . Adding the "/" before api fixed my app. Push the changes, then pull them to your ubuntu copy and rebuild.

    • @Droodt
      @Droodt 8 หลายเดือนก่อน +1

      Thank you, was wondering for hours why it wasn't working

  • @Mates087
    @Mates087 3 ปีที่แล้ว

    it is very useful, thank you!

  • @logan0501
    @logan0501 2 ปีที่แล้ว +1

    What pem file bro

  • @Friis1978
    @Friis1978 3 ปีที่แล้ว

    Hi Sanjeev, I havent done your other tutorial where you made the db, could you perhaps provide a sql file with the database for us to be able to make the database dumb in the video?

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  3 ปีที่แล้ว

      Yeah let me grab that for you and upload it to the github page

    • @Friis1978
      @Friis1978 3 ปีที่แล้ว

      @@SanjeevThiyagarajan great, thank you very much.

    • @tjisanakerr711
      @tjisanakerr711 2 ปีที่แล้ว

      @@SanjeevThiyagarajan Did you ever upload this? I can't find it on the github repo. Thanks

  • @seeking-anandam
    @seeking-anandam 3 ปีที่แล้ว

    After encrypting I ran into a really frustrating problem. My site was loading but not the database. And it wasn't like yours ( I didn't use env variables like that). When I checked the network I could see that all my api calls were getting blocked with the message 'blocked: mixed content'. Please help

  • @samuelbebas6381
    @samuelbebas6381 2 ปีที่แล้ว

    Hi everyone, i got a little problem.
    Everything when fine, the problem is axios response data returning html instead of object/json, any idea what cause it? Thanks a lot

  • @zscoder
    @zscoder 2 ปีที่แล้ว

    Enjoyed this cheers

  • @ajayb8730
    @ajayb8730 3 ปีที่แล้ว

    bro i need your help to config the server.js file for ec2 deployment and I couldn't connect the pd db with my server.js. how can I reach you out to solve this problem? help me out please

  • @karimdakroury4977
    @karimdakroury4977 3 ปีที่แล้ว

    Hey, i have a couple of questions if you can please help me out. Should i use pg dump or create an RDS on AWS?

  • @programmer9809
    @programmer9809 6 หลายเดือนก่อน +1

    👍

  • @blackraven6049
    @blackraven6049 3 ปีที่แล้ว

    Am I going to get charged for deploying it on EC2? Can I do Lambda instead?

  • @oscarfelix7244
    @oscarfelix7244 2 ปีที่แล้ว

    Bro! Thank You 🙏🏼

  • @buka.a
    @buka.a 3 ปีที่แล้ว

    This is beautiful

  • @darkarie
    @darkarie 3 ปีที่แล้ว

    BIG THANK YOU!!!!!!!!!!

  • @hanif3661
    @hanif3661 ปีที่แล้ว

    thanks a lot.

  • @mohamedyoussef8835
    @mohamedyoussef8835 ปีที่แล้ว

    Awesome video ++++++++++++++++++ 🙂

  • @stoicpoetrywisdom
    @stoicpoetrywisdom 2 ปีที่แล้ว

    How much would it cost to deploy this to AWS ?

  • @Sanyat100
    @Sanyat100 3 ปีที่แล้ว

    You the man !!

  • @broccool2300
    @broccool2300 3 ปีที่แล้ว

    I tried to log in on the terminal with ssh like you showed and I got denied with warning "WARNING: UNPROTECTED PRIVATE KEY FILE!" Permission for ....pem' are too open.
    It is required that your private key files are NOT accessible by others.
    This private key will be ignored.

  • @Orion52441
    @Orion52441 2 ปีที่แล้ว

    thanks

  • @joydeepbhattacharjee5305
    @joydeepbhattacharjee5305 2 ปีที่แล้ว

    Thanks man

  • @faithfulojebiyi
    @faithfulojebiyi 3 ปีที่แล้ว

    What if the github repo is private? would you still be able to clone it directly

    • @SanjeevThiyagarajan
      @SanjeevThiyagarajan  3 ปีที่แล้ว

      yes, when you run the clone command it will prompt you for username and password

    • @faithfulojebiyi
      @faithfulojebiyi 3 ปีที่แล้ว

      @@SanjeevThiyagarajan would it request for password during subsequent pull requests?

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 3 ปีที่แล้ว

    Awesome

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว

    awesome

  • @greykor140
    @greykor140 3 ปีที่แล้ว

    Does deploying something like this cost money?

    • @code22id20
      @code22id20 3 ปีที่แล้ว +1

      yes bro 1 $

  • @robertoherman7504
    @robertoherman7504 3 ปีที่แล้ว

    Why do we need NGINX when we can already server the build/index.html file using Express and put "proxy": "localhost:3001" in the client side's package.json? Using nginx seems pointless to me within the scope of this tech stack. What am I missing?