Deploy Node.js and React Apps | Full Deployment /w Nginx VPS, SSL

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Full VPS deployment using Nginx, reverse proxy, pm2, SSL, and Lets Encrypt.
    Get Hostinger Discount: hostinger.com/lamadev Coupon Code: LAMADEV
    MERN Stack Netflix app all parts: • React Node.js Netflix ...
    Support the channel: buymeacoffee.com/lamadev
    Deployment documentation: github.com/safak/youtube/tree...
    Join Lama Dev groups
    Facebook: / lamadev
    Instagram: / lamawebdev
    Twitter: / lamawebdev
    Discord: / discord
    0:00 Introduction
    0:35 Which Hosting Should I Choose?
    02:23 Connecting to a VPS with SSH
    06:10 VPS Installing Nginx
    10:00 VPS firewall
    11:37 Understanding Nginx
    17:50 React and Node Apps Production Configuration
    23:45 Deploying Node.js App to a VPS
    31:42 Using PM2 on a VPS
    33:31 Deploying React App to a VPS
    39:08 Using domain on an Nginx Server
    47:40 HTTPS SSL with Let's Encrypt
    51:31 Outro
  • Věda a technologie

Komentáře • 234

  • @usamairfan9573
    @usamairfan9573 Před rokem +10

    Truly helpful and amazing video. I did my deployment for the first time and because of you, it felt like a piece of cake. Thanks alot

  • @thi_thi_ko
    @thi_thi_ko Před 2 lety +2

    I randomly ended up on your channel and i continuously watching your videos and not getting bored like other Online tutorials. You are simply great!!!.

  • @AlejandroRL868
    @AlejandroRL868 Před 2 lety +6

    This is the most accurate tutorial to real deploy a frontend + backend, you're awesome, thanks!

  • @johndowning7446
    @johndowning7446 Před rokem +4

    Fantastic video. Was able to bring up a series of react apps with SSL after struggling to deploy them behind docker nginx proxy container architectures. The video and supporting documents are perfect, thank you very much for the information, a real life saver!

    • @27sosite73
      @27sosite73 Před rokem

      does this video explain docker + nginex + node or only nginex + node?
      ty

    • @charbelandary6596
      @charbelandary6596 Před rokem

      @@27sosite73 didn't mention any docker just nginx with node and react

  • @StanOvidiu
    @StanOvidiu Před 3 lety +3

    Your tutorials are so on point. Good job!

  • @muhammadshoaib3380
    @muhammadshoaib3380 Před 2 lety

    How I could miss this video from my fav dev Channel. Its been a week and could not the accurate videos. Finally found the exact one i am looking for.
    Still learning as beg. and your videos helped me alot.
    Thanks alot Safak

    • @dutchvooriedereendvi2914
      @dutchvooriedereendvi2914 Před rokem

      مرحبا ممكن المساعده بخصوص هذا الفديو .. بعد الربط بين الدومين والاستضافه. كيف يمكن ان ارفع ملفات تطبيق ال نود جي اس اذا كانت ملفات كبيره في الفديو لم يشرح هذه الجزئيه. هل ممكن ان تساعدني في هذه المشكله او تشرحليها بشكل اكثر ..
      شكراً جزيلاً

  • @kamranshahid8825
    @kamranshahid8825 Před 2 lety

    This tutorial solved my problem which I was stuck in for last 4 days. Thank you very much Lama Dev I am so going to subscribe this channel.

  • @dongyuexu4823
    @dongyuexu4823 Před rokem +1

    I really love this deployment tutorial of the Netflix app!

  • @enesbc46
    @enesbc46 Před 2 lety +1

    Şafak adamsın be böyle bir video arıyordum ve bir Türkten bunu görmek... Çok sağol!

  • @kunaldhuria3935
    @kunaldhuria3935 Před rokem

    You are a God send human being Lama, can't express how grateful I am to you

  • @ferdinandeke9590
    @ferdinandeke9590 Před 3 lety +7

    Words can't thank you enough bro..I'll definitely give a vote of thanks/acknowledgement to you on my applications once I deploy and get them running for business.. you're God sent man..
    Then I kind of have issues in reading data on select tags when performing the update part of my CRUDs... Also dependent tags have kept me at a place for 2 days now, I kind of got to figure it out today but it shows the retrieved data on my network inspection tool, but while reading it out on the page, it doesn't show the data's I see on my network🤦, kind of left where ever I had tags in my updates pages and went on with other things...if you could illustrate these in you next tutorials please, I would be grateful.. the dependent tags are like country->states relationships

  • @marioroland2176
    @marioroland2176 Před 2 lety

    This is the best CZcams on app deployment.
    Thank you so much. You made my day

  • @nazirmudumane8830
    @nazirmudumane8830 Před rokem

    I can't stop watching this video😍 loved it. Thank you so much man❤

  • @saurabhnambiar5514
    @saurabhnambiar5514 Před 3 lety

    Bro really needed this very Little good content out there regarding real time deployment usiing nginx ...thanks

  • @TheArphan
    @TheArphan Před 2 lety

    Thanks. Your tutorial was well made and it help me a lot to put my react website online! :) Good job!

  • @akhtarmoradi8609
    @akhtarmoradi8609 Před rokem +1

    Your tutorial is one of my best favourite channel, words cannot say how happy i am when found your channel. Please tell us how difference is deploying to hostinger shared hosting compared to single hosting!

  • @RollingRhinoDeveloper

    Thank you after spending 12+ hours this one really helped

  • @rajatayyab2117
    @rajatayyab2117 Před 10 měsíci

    you are such a kind person. You just nailed it and it is really helpful

  • @alinamanmedia
    @alinamanmedia Před 2 lety

    Thank you very much. The best tutorial to deploy a MERN app.

  • @cina-tech
    @cina-tech Před rokem

    Thank you bro. Your videos always a salvation to me

  • @jexeq
    @jexeq Před 2 lety

    Hi Lama. Your tutorial helped me a lot. Hugs and Cheers 4 U!

  • @piyushmahapatra5402
    @piyushmahapatra5402 Před 3 lety

    I am crying with love for this channel.

  • @arturmusienko397
    @arturmusienko397 Před 2 lety

    You are the BEST! Thank you so much, it was very helpful for me!!!

  • @AdamMaichrzik
    @AdamMaichrzik Před 3 lety

    As always - awesome!

  • @weedi5885
    @weedi5885 Před 17 dny

    The best tutorial I've seen about this topic thanks u man!

  • @kantyDarius
    @kantyDarius Před 3 lety

    This is exactly what I was looking for 👌

  • @mhslekbar
    @mhslekbar Před 9 měsíci

    best deployment tutorial thanks a lot Eng. Lama

  • @navdeepsingh42983
    @navdeepsingh42983 Před 3 lety +2

    amazing tutorials. even i've seen you portfolio you've made amazing projects. could you please make videos tutorials on that projects too. like slack clone, CZcams, google, twitter clones and etc. please make tutorials on these, i'm waiting for it. keep making amazing production level projects.

  • @cleyton1986
    @cleyton1986 Před 3 lety

    Perfect. simple and objective.
    +1 registered!
    Suggestion: Also show on AWS.

  • @mehulj4430
    @mehulj4430 Před 3 lety

    Thank you for it man love it.

  • @janiodrey7858
    @janiodrey7858 Před 2 lety

    Thank you very much. Easy to follow!

  • @ahmedkhlifi6941
    @ahmedkhlifi6941 Před 9 měsíci +4

    nice! just don't forget to run 'ufw allow ssh' so you can't risk closing the ssh connection when you try to login next time

  • @senimkl
    @senimkl Před 10 měsíci

    Perfect video, thank you so much!!! Small clarification for the uninitiated, I struggled to solve this problem so if you leave the server and you have as message connection time out each time without possibility to reconnect to your server, you must restart the firewall then reconnect. Once reconnected, you need to authorize ssh with this command: sudo ufw allow ssh
    You'll have no more connection problems

  • @avijain6672
    @avijain6672 Před rokem +1

    Thanks bro, I've litreally wasted my whole day searching for this exact content.

  • @achrafboucetta2275
    @achrafboucetta2275 Před 2 lety +1

    Great tutorial, don't forget guys to allow ssh by "ufw allow ssh", so u can connect again

  • @feth-eddinehanani7477
    @feth-eddinehanani7477 Před měsícem

    can't find words to thank uuuu , perfeeect

  • @yamlakkassahun6650
    @yamlakkassahun6650 Před 2 lety

    best practical tutorial ever thank you

  • @piotrekx
    @piotrekx Před rokem

    the best tutorial for junior devops :D

  • @tiri2.
    @tiri2. Před rokem

    Thank you so much. This is what i need!

  • @PeterAkaliro
    @PeterAkaliro Před 2 lety

    Love tutorials, I just made a payment with your coupon. Thanks

  • @ponmanir6017
    @ponmanir6017 Před rokem

    I have subscribed, Liked and commented. Thanks for your effort.

  • @markkyokuhaire9721
    @markkyokuhaire9721 Před 3 lety

    He's back PEOPLE! Heeeezzz BACK!

  • @robertoaffuso8753
    @robertoaffuso8753 Před rokem

    Amazing video really helpful! Thanks!

  • @ahmedaraby9590
    @ahmedaraby9590 Před 5 měsíci

    Nice explanation!! Thats helps a lot

  • @raouffilali9617
    @raouffilali9617 Před 2 měsíci

    Truly helpful and amazing video

  • @vinaysehwag459
    @vinaysehwag459 Před 2 lety +1

    Amazing tutorial LamaDev , you give us inspiration to learn everyday something new and make something new everyday. Can you make tutorial on deploying this project free . It will help most of the people like me , who are learning not able to afford buying Hostinger.

  • @sarabpreetsingh6147
    @sarabpreetsingh6147 Před rokem +1

    great work... amazing video...

  • @acearvingando6848
    @acearvingando6848 Před 2 lety

    you earned a subscriber here...
    awesome tutorial... 👏

  • @WebTrend
    @WebTrend Před 3 lety

    Wow great bro keep going
    I decided to share my knowledge on CZcams as well 🙏👍

  • @rajshrishrimal2653
    @rajshrishrimal2653 Před 3 lety +1

    Great video 😍

  • @smydo1164
    @smydo1164 Před 5 měsíci

    thanks you so much you learn all the way to do what i want, really thanks 😄

  • @lytuan5836
    @lytuan5836 Před 2 lety +1

    really useful with me, thanks a lot

  • @ahmedelgaidi
    @ahmedelgaidi Před 2 lety

    Can't describe the good feeling i have now
    Thanks:)

    • @dutchvooriedereendvi2914
      @dutchvooriedereendvi2914 Před rokem

      مرحبا عندي بعض الأسئله عن هذا الموضوع فممكن اسئلك اذا انت فاهم الموضوع. انا بصراحه لغه الانجليزيه ليسه بالجيده. فأحببت اسئلك اذا ما في عندك مانع

  • @miguelarenasrodriguez5830
    @miguelarenasrodriguez5830 Před 3 měsíci

    Thank you so much!! really this video help me to upload the project for my first client to VPS. Yo saved me, I've been watching other videos and reading other documentation and I hadn't been able to did it. I spent days to achieved it and thank to you I could do it! greetings from Latam! big hug!

    • @trechosdelivros4445
      @trechosdelivros4445 Před 2 měsíci

      I'm in the same situation as you. can you help me ?

    • @miguelarenasrodriguez5830
      @miguelarenasrodriguez5830 Před 2 měsíci

      @@trechosdelivros4445 what is your specific problem? If you follow the same steps in the video you’ll get it (obviously with different names for your project ). But might be could I help you

  • @yazilimciningalaksirehberi
    @yazilimciningalaksirehberi Před 9 měsíci

    Harika ötesi bir video. Çok teşekkür ederim hocam. Sevgiler, saygılar.

  • @coder5336
    @coder5336 Před 3 lety

    Thanks for the detailed video. which hardware I should choose for the 10 project portfolio?

  • @wissemgrari
    @wissemgrari Před rokem

    Thanks so much, this is very helpful.

  • @eumm11
    @eumm11 Před 5 měsíci

    amazing bro, thank you so much!

  • @muchamaddestafadilah
    @muchamaddestafadilah Před 2 lety

    Mantap Om, englishnya clear banget ...

  • @dekafmusic
    @dekafmusic Před 3 měsíci

    Me here learning server management so i can use the knowledge on my freelance project. Thanks.

  • @lnamikaze8919
    @lnamikaze8919 Před 2 lety

    would have like the portion over DNS config but still a huge banger this video. thk's boss

  • @nicolasfernandez7996
    @nicolasfernandez7996 Před 2 lety

    I love you bro! Thanks so much!

  • @laurentgourouvin2587
    @laurentgourouvin2587 Před 2 lety

    Thank you for this tutorial !

  • @user-qw9uo4wo5p
    @user-qw9uo4wo5p Před 3 lety

    Wow! Good job! Thanks!

  • @CharcoalDaddyBBQ
    @CharcoalDaddyBBQ Před 11 měsíci +1

    This is great!!

  • @kratos6619
    @kratos6619 Před 3 lety

    thank you lama dev !

  • @bryikcode
    @bryikcode Před rokem +1

    u r great bro , thank u

  • @wes7bg
    @wes7bg Před 4 měsíci

    Amazing ! Just amazing.

  • @mexicanmax227
    @mexicanmax227 Před 3 lety

    Liked and subscribed babyyy 😎

  • @kavinkumarb7323
    @kavinkumarb7323 Před 3 lety

    Waiting for next video 🍃

  • @biniteshome1403
    @biniteshome1403 Před rokem +2

    Thank you so much Lama this is awesome. As a side note and warning for the rest of us, make sure to allow ssh before running "nginx 'Full Access'", nginx full access will only allow port 80 and 443. otherwise you will be locked out of your vps . just like I got locked out of my digitalocean droplet.

    • @mohitckdubey
      @mohitckdubey Před rokem

      Have you deployed?

    • @biniteshome1403
      @biniteshome1403 Před rokem

      @@mohitckdubey yes i have

    • @mehdibouchami7029
      @mehdibouchami7029 Před rokem

      I have been locked out my vps too, I had to disable firewall to access again how to allow SSH access please?

    • @mehdibouchami7029
      @mehdibouchami7029 Před rokem

      it's "ufw allow ssh" I guess 😅

    • @mohitckdubey
      @mohitckdubey Před rokem

      @@biniteshome1403 Can you share your whole code because I'm having login problem. And I don't have much knowledge of react latest version. Will you please??

  • @aemde
    @aemde Před 7 měsíci

    detailed, clean, effective

  • @bilalarain4632
    @bilalarain4632 Před 11 měsíci

    thanks man , you saved many lifes

  • @iqbal5942
    @iqbal5942 Před 3 lety

    Lama in your next project before starting coding plz give a brief overview of how you think of starting any project?

  • @user-ud1gq6sj2f
    @user-ud1gq6sj2f Před 8 měsíci

    Thank you very much bro!

  • @yukinoyu
    @yukinoyu Před 8 měsíci

    Hi, thank you for the awesome video!
    What I would like to know is if there is a reason to proxy pass to the public ip and use cors instead of proxy passing to localhost, which theoretically could lead to better performance?

  • @fullmoon9975
    @fullmoon9975 Před 4 měsíci

    a helpful CZcams video ever

  • @haiderkhalil9513
    @haiderkhalil9513 Před 9 měsíci

    You're the MAN.💌

  • @javalok9575
    @javalok9575 Před 3 lety

    great Thank you @Lama Dev , please response when stuck on somewhere , one question , like netflix which using aws clould , is it good to use vps ? and what about security and streaming speed ?

  • @yakupaydn6213
    @yakupaydn6213 Před 3 lety

    For a 4-5 apps portfolio which server do you recommend? Thank u very much 👏👏👏

  • @SubzeroGamers100
    @SubzeroGamers100 Před 2 lety +1

    thanks so much!!

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 Před 3 lety +7

    Make deployment on ubuntu nginx, aws .also image upload on aws s3 using multers3 and aws sdk

  • @badakculasatu
    @badakculasatu Před rokem

    underrated

  • @RianY2K
    @RianY2K Před 3 lety

    thank you for tutorial 👍

  • @Mohammad-pv5zt
    @Mohammad-pv5zt Před 11 měsíci

    incredible thanks

  • @nsolomonsudhirprabhakar7317

    When we enable ufw there is disruption on ssh connection as warned by the message, we can never again ssh into the server afterwards,

  • @user-ms2jf1eg3j
    @user-ms2jf1eg3j Před 3 lety

    Instant like, bro

  • @NoreddineSaiah
    @NoreddineSaiah Před rokem

    Thank you!

  • @justfun591
    @justfun591 Před 2 lety

    Salute!

  • @davsx6201
    @davsx6201 Před 2 lety

    Thanks Lama for great contents
    I m just trying to deploy one app on nginx everythings works fine, but i can't reach my assets folder located in my api. /api/assets/images. Please can you give some trics?

  • @FurqanCodes
    @FurqanCodes Před 5 měsíci

    at 17:42 if your page is not showing just disable firewall, run this command ufw disable

  • @vihigacountyreferralhospit2656

    can you write a tutorial on how to do the same from centos 7 CWP enabled?

  • @me.ahasan
    @me.ahasan Před 3 lety

    Awesome 👍

  • @keimmeraltuve8452
    @keimmeraltuve8452 Před 2 lety +7

    very appreciated, nice tutorual but you should pont that when activating the ufw you should add the ssh rules, so when you try to connect again later it will let you connect

  •  Před 3 lety +1

    First option is okey for an app with1000 active users?

  • @laponiec
    @laponiec Před 9 měsíci

    Hi would you be able to give me some advice? I have a React.js app which I deployed on hostinger. My React.js uses axiom to connect to Springboot API which then uses a GET call to retrieve information from Database. So far, I have uploaded the React.js app to my hostinger account and connected it with my domain. The problem is that I am not really sure how I would connect the other two components. Do I have to use VPS to upload my Springboot API and then connect it to mySQL DB on hostinger? Will appreciate any pointers. Thank you

  • @nagasatishvadlamuri8486

    hi nice tutorial...i followed your steps and deploy this project...but api server not connecting to client and admin page is not display any think which is shown black...where i did mistake....seperately api-server is working but ...and given details in .env file but api not hitting to client displayed only register ...other pages is not working..can you suggest me ...

  • @bilelbelghith5432
    @bilelbelghith5432 Před rokem

    can you please add a video hosting the same application using docker ?

  • @charbelandary6596
    @charbelandary6596 Před rokem

    bro you are a legend please can you make same video with go daddy VPS?

  • @jeremyh9841
    @jeremyh9841 Před 3 lety

    why use nginx and not apache already installed on ubuntu ?