How to deploy a React, Node or Express JS application to production | Digital Ocean

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024
  • In this video we are going to learn deployment of react, node or express js application to production, In this video we will use digital ocean cloud server for deployment of our application. this process works for every nodejs based application which runs on development server.....
    Thanks for watching....
    Resource Link
    webscript.info...

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

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

    great video from start to finish. i used this video to successfully deploy my backend server. i didnt need the build steps because i would not be showing any frontend. 10/10 video!

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

    This was fantastic! I was having trouble with the Nginx config and pm2, your video cleared all that up for me. Thank you for sharing.

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

    Thank you so much. This is Really Awesome!!! Very details. Even in 2022 It works Nice...
    Thanks A Lot Friend!...

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

    could you make a video for deploying a mern stack ?

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

    Thank you very much. Spent days to find such a clear explaination. Love it... ❤

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

    Such an elaborate video on an important topic. Thank you so much for sharing.

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

    thanks for the tutorial , i found out that unless a person works for a startup they are unlikely to build a full project on their own , mostly they will be mantaining or enhancing the available project , ,,so can you make a series on how companies manage the production code and how they add new code to an existing project and test it without breaking the production code ??

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

      They use staging server to firscheck if everything will work through remote and then deploy on production

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

    I got trouble learning Digital Ocean before this video, Thank so much bro!!

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

    this video really made me understand Digital Ocean as a beginner. Thanks Khan for boosting my confidence

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

    Great video

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

    Hey man, thanks for the tutorial. Super helpful as DigitalOcean can be hard to navigate the first time

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

    Brother I have to deploy my front end reactjs. And
    Back end in nest is with MySQL. Please tell me or give me some good references I am very new I really don't have any idea about deploying project

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

      By the way it was very informative video for me you have explained very well

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

    after pm2 website run on the domain but IP address not run

  • @Ash-ue8sk
    @Ash-ue8sk ปีที่แล้ว

    Nice explanation.. worked like a charm

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

    You're amazing bro! Thanks for sharing your knowledge!

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

    This was good on the gangster-nerd level... like the best tute over. Please don't say the word godaddy though I become ill. lol

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

    Really helpful tutorial. Thanks a lot!!

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

    Bro your contents and way of explaining is really great 🔥🔥

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

    for mern stack follow the same ? thanks

  • @vickyvijay-hn1hf
    @vickyvijay-hn1hf 2 ปีที่แล้ว

    Really thankful bro... 🤩🤩🤩🤩🤩🤩

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

    at 9:45 makes me suscribe to Your Channel, Thank You for video

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

    Hi, thanks a lot for the video. How can I update the website with the changes I have pushed to github. I've pulled the changes from github to nginx server, but I don't understand how to update the website itself.
    Thanks in advance

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

      You first push your changes to your repository then pull your changes in your droplet project folder once pull successfully completed use pm2 to restart your application “pm2 restart appName”

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

    Thank you so much sir

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

    thanks a lot. Such a nice video. Bro can you make a video of deploying same application using deployment tools like ansible,chef etc.

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

    hi if I may ask is possible to hide all the source file when we view page source so that we don't see the files during production I think its called obsfication

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

    💯💯💯💯💯

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

    what about backend and Database?. Means where we can deploy these?

  • @ManishChoudhary-bb2mn
    @ManishChoudhary-bb2mn 3 ปีที่แล้ว

    Great video sir

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

    Good tutorial, I have been looking for a way to do this for more than a week now. Thanks so much, you have a new subscriber. But I don't understand the file you're working on. Is that the root folder that has your server or did you cd to the front-end(react js) because you did npm start and the app started.

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

      Hey bro you can start your react app from anywhere just have to set up the package.json of the current folder with the script pointing to the react folder like this -> "start": "npm start --prefix ../theReactfolder" don't forget the --prefix

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

    nice contenthad been searching fiot the same from last 2 months keep the good work continous if possible then make tutorials on micro services or whole course for the mern stack development on ec2

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

    Rizwan , Do you know how we can make this site run with backend server too in digital ocean ?

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

    Excellent tutorial

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

    Excellent ! Thank you ! any idea how to deploy with nodejs API?

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

    nice video and what about mysql database

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

    Excellent 👍🙌. Thanks a ton.🙏

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

    Thank you bro. I learn lots from you. please tell me how can I add message notification. can I use web socket?

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

      You don’t need to use web socket in this project because we are already using a real-time firestore database so we need to add logic for notifications

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

      @@RizwanKhanDeveloper ok

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

    HI Bro, Thanks for the Videos. Your videos are really giving me confidence. Can you make a React App on Push Notification ? And which can be integrated to any website.

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

    5 out of 5

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

    Hello,
    I have a problem with my subdirectory (/qwerty). When I configure like this, my subdirectory returns 404.
    Anyone can help me??

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

    Thanks a ton!

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

    thank you so much for this video

  • @ayushKumar-9835
    @ayushKumar-9835 2 ปีที่แล้ว

    Thanks man, helped a lot 😄

  • @HarshSingh-hk8fe
    @HarshSingh-hk8fe 3 ปีที่แล้ว

    Hi sir thank you for such awesome tutorial i just want to ask one question, sir in future how can we update our webapp( do some changes or add new features)

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

      you can have your project in some repository and pull the changes in droplet

  • @AliHassan-qd7lm
    @AliHassan-qd7lm 2 ปีที่แล้ว +1

    bro how to add env variables in droplet please tell this question urgent need

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

      You can add inside ~/.bashrc file and then run source ~/.bashrc

    • @AliHassan-qd7lm
      @AliHassan-qd7lm 2 ปีที่แล้ว

      @@RizwanKhanDeveloper but what is the syntax of adding and run?

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

    great stuff! How would you deploy multiple apps?

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

    how can we deploy next.js project on cpanel. without varcel

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

    but bro if we use mern means also use MongoDB key so how to deploy in digital ocean

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

      First install mongodb in digital ocean cloud and you can follow installation process either from mongodb official doc or digital ocean blog

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

      @@RizwanKhanDeveloper but we also install nodejs and express js inside the digital ocean this is true bro or not

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

      @@anmolrathi4054 expressjs is just a library and it is part of your project but nodejs is like your system software and similarly mongodb needs to installed like nodejs

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

      @@RizwanKhanDeveloper but bro when we deploy mern project in Heroku so on that time we also type MongoDB key but in digitalocean where I type so please tell and make a video on this topic but please tell bro

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

      @@RizwanKhanDeveloper so we put mongodb and node js install in digital ocen command or install by single-app cluster please tell bro

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

    This is a react app run on serve side ?

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

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

    Hey guys if you have done everything correctly and still get 'This site can’t be reached' error you can type in the command 'sudo ufw allow 9000' this will enable ubuntu firewall(ufw) for port 9000

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

    Hi brother, Can I deploy MERN app on cPanel?

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

    Hi. How you install git on ubuntu server ? Could you please tell me

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

      git will be preinstalled on ubuntu or any Linux based os

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

      @@RizwanKhanDeveloper Thank you :)

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

    Cheapest services for hosting mern application ??

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

      Mohd Nawazish Alam There are two types of hosting available shared hostings and cloud, for applications which runs on node server you must need to have cloud hosting and cloud is costly compare to shared hosting but digital ocean is reasonable and if you use my referral you will also get $100 credit in your digital ocean account

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

      @@RizwanKhanDeveloper how much digital ocean annually cost for small type application where there is monthly user of aproxx 10k ??

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

      Mohd Nawazish Alam Minimum it will cost you around $5 per month as you can see in the video

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

      @@RizwanKhanDeveloper thanks a lot bro

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

      Mohd Nawazish Alam your welcome bro

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

    Bhai make react portfolio website

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

      Sure first I m going to bring e-commerce mern stack series then portfolio

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

      @@RizwanKhanDeveloper Thanks bhai

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

    I have used your referral link to signup on digital ocean but didn't get $100.

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

      $100 reward is from digital ocean service bro I can’t help you in this. May be offer is not valid anymore I have to check on the platform

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

    Bro are you on LinkedIn

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

    sound is too low bro. try upgrading that

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

    i was looking for a copper instead i found diamond (not gold)!

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

    Riz good work.. But you're not replying msg on WhatsApp

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

    How to convert http request to https in ngnix

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

      First of all you need ssl certificates, and you can get free ssl certificates from digital ocean just google it

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

      @@RizwanKhanDeveloper lets's encrypt or any other should I use

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

    4.8

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

    How i can contact you?

  • @Avinashkumar-xt4zq
    @Avinashkumar-xt4zq 2 ปีที่แล้ว

    5

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

    5/5

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

    Great video

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

    hi if I may ask is possible to hide all the source file when we view page source so that we don't see the files during production I think its called obsfication