Auto Deploy Nodejs Rest API on AWS EC2 | CI/CD pipeline using GitHub Actions

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

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

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

    GitHub Repo - github.com/kalyansaxena/nodejs-restapi-ec2
    GitHub Actions - github.com/features/actions
    AWS Management Console - aws.amazon.com/console/

  • @pulsechainalltheway1845
    @pulsechainalltheway1845 6 หลายเดือนก่อน +5

    This is amazing, I have been looking for a video that properly explains the whole process of deploying a Nodejs app with a CI/CD pipeline using GitHub actions. Thanks a lot.

  • @shyam-bh
    @shyam-bh 10 หลายเดือนก่อน +1

    After researching and viewing so many resources, this is what i was looking for, thank you so much for this video. Keep posting such videos.

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

    Wow.. i have been doing env variable loading wrong all along 😂😂😂.
    Thank you. I never thought about doing it this way

  • @harshitbhargav6288
    @harshitbhargav6288 5 วันที่ผ่านมา

    Amazing video and learn how to deploy node js app with CI/CD pipeline via github actions this process can reduce manually work.

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

    I spent hours searching for help on this exact thing, this was the only video that left me satisfied. Thanks for the video

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

      I'm glad that the video met your needs and left you satisfied! Your kind feedback motivates me to create more content. Thanks for watching and for your support! 😊

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

    Very well structured and clean explanation. Please do continue to make these kind of videos. Good luck. You got a subscriber !

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

    WOW!!! You are the best man!. Thank you so much, you nailed it.

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

    It was the best video ever for this. I followed every step of yours. whenever I have to modify something according to my need I just ask chat-gpt. Thanks a lot!

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

      Thank you for your kind words!! I'm really happy that it helped you!

  • @AbhayRamteke-o4p
    @AbhayRamteke-o4p 6 หลายเดือนก่อน

    This is the best video i have ever seen on this topic keep growing brother

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

    Thanks a lot, this really helped and cleared a lot of struggles

  • @alibahman-mk3ib
    @alibahman-mk3ib 3 หลายเดือนก่อน

    very very useful and easy to understand .thanks bro

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

    Thank you! Very useful video!

  • @uzochukwuamarabenneth2583
    @uzochukwuamarabenneth2583 2 หลายเดือนก่อน +1

    Great video, a cool addition would be adding different environments (prod, dev, staging)

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

      With the stuff he taught is enough to do it yourself. Just create the pm2 instances for each branch and the corresponding github action logic for it

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

      @ yeah, I’ve done it severally, just pointed out an improvement cos anyone that wants to implement this would most definitely want separate environments.

  • @DaniyalSohail-p5j
    @DaniyalSohail-p5j 9 หลายเดือนก่อน

    Kudos brother. Keep up the good work.

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

    Thank you my friend. You saved my job

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

    Great Video, lots of information, I was exactly looking for this! 😍

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

    nice tutorial video, helped me understand this concept alot

  • @AshenSandeep-jc5iw
    @AshenSandeep-jc5iw 5 หลายเดือนก่อน

    well explained. easy to deploy ,

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

    Thanks bro new skill added😅👍

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

    Awesome bhaii.....subscribed

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

    Thanks alot for this amazing video!

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

    Hats off man 💪

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

    Loved it ❤️👍

  • @UditNagar-of5su
    @UditNagar-of5su 5 หลายเดือนก่อน

    Best Resource...Thanks sir ❤❤

  • @Hoid1014
    @Hoid1014 27 วันที่ผ่านมา

    you are God bro. Thank you

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

    Thank you very much ,for sharing this content . It saved me lot of time and have gained lot of knowledge.

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

    Thank you, it was a wealth of knowledge. 😁😊

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

    Thankyou so much brother. you are own, you saved my lots of time

  • @shehzadali6713
    @shehzadali6713 4 หลายเดือนก่อน +1

    Thanks, Amazingly explained man
    Could you please make a video on eks , load balancing nodejs ci CD pipeline

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

    Very clear explanation - well done and thank you!

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

      Thank you, Glad it was helpful!

  • @Richie98-p8k
    @Richie98-p8k ปีที่แล้ว

    Hi bro, Loved your explanation on this video. Thank you soo much for this content. Please make more videos, Don't stop it

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

      Thank you, More to come!

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

    great work

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

    Excellent Explanation brother

  • @ok.tanmay
    @ok.tanmay 8 หลายเดือนก่อน

    thanks for the tutorial it helped a lot

  • @Mainak908
    @Mainak908 10 หลายเดือนก่อน +1

    Plz zoom a little bit...there r many mobile viewers... overall video is good ❤

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

    Thank you. Good video with good explanation

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

      You're welcome! I'm glad you found the video and explanation good

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

    Great video crack

  • @KamruzZaman-x7e
    @KamruzZaman-x7e 3 หลายเดือนก่อน

    It's amazing

  • @RaviKumar-b5u1u
    @RaviKumar-b5u1u 2 หลายเดือนก่อน

    Really , awesome video. I have a question like in our company all the time we are reloading our machine like using pm2 reload 10 . How can we achieve that functionalities.

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

    Amazing video

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

    Thank you for this, can you also show how to do this with auto scaling running multiple ec2 instances?

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

    Clean Explanation thanks!

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

    Thanks man!

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

    thank you, very helpfull

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

      You're welcome! I'm delighted to hear that you found the video helpful. Explore the channel for more content and consider subscribing!

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

    Thank you so much.

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

    thanks a lot man!!

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

      You're welcome! I'm glad you enjoyed the video. Explore the channel for more content and consider subscribing!

  • @PrashantKumar-nc8gd
    @PrashantKumar-nc8gd หลายเดือนก่อน

    Hey,
    can I know how you have changed the background image of powershell?

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

    Thank you so much

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

      You're welcome! I'm glad you enjoyed the video. Explore the channel to find more content!

  • @BhoopendraBhaskar-w8n
    @BhoopendraBhaskar-w8n 2 หลายเดือนก่อน

    your rock

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

    Thanks for the tutorial buddy ❤ I have deployed my Express server into AWS EC2 but it’s on http port and getting security issue in Frontend. Can you please make a video on how to change it to https ? Would be helpful 😊

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

      you need to install install certificate on a application load balancer, then use SSL termination. ur EC2 will get a SSL. make sure to use route53 and AWS ACM to help u

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

    video is so much usefull,
    but brother i have one question like if i stop my instance and restart it so what i need to do ?

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

      Check PM2 Process List and verify express server is running or not: pm2 list
      If your app is not running, you can start or restart it with PM2: pm2 restart
      Refer to this for Automatic Startup on Boot - pm2.keymetrics.io/docs/usage/startup/

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

    thanks a lot bro

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

      You're welcome! I'm glad you enjoyed the video. Consider subscribing to the channel to get more content like this, Your support and feedback mean a lot to me!

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

    osm

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

    hi great video, But how can we do this for 3 different environment ie, development, production, qa on aws

  • @sc-nc6bb
    @sc-nc6bb 9 หลายเดือนก่อน +1

    There will be some command equivalent to docker compose -logs to see the errors of the app on the server ?

    • @webwizard8
      @webwizard8  9 หลายเดือนก่อน +1

      you can use PM2's built-in logging functionality to view logs. For example, you can use the "pm2 logs" command to tail the logs in real-time.

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

    can you make a video on using mysql

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

    How can i have different stages for the above ?
    For example I have 2 ec2 instances and I have configured runners on both of them. One for staging and one for production.
    How can i do it?

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

    can we use the same instructions on ubuntu instance ?

  • @king-virat-kohli
    @king-virat-kohli 10 หลายเดือนก่อน

    Hi, I want to store the .env values in the github secreat. And then i want them to pull them to the docker. Which i am only able to do it for the first key value pair stored in the github secreat. I can load multi values from it. Can u help me out here?

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

    what is diff between jenkins and github actions?

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

      Jenkins and GitHub Actions are both tools used in the continuous integration and continuous deployment (CI/CD) process.
      Jenkins is an open-source automation server that allows building, deploying, and automating projects. It's highly customizable and has been in the market for a longer time, offering a wide range of plugins and integrations.
      On the other hand, GitHub Actions is a newer offering by GitHub that is tightly integrated with the repository. It allows you to automate tasks directly from your GitHub repository. It's well-suited for projects already hosted on GitHub and simplifies the CI/CD setup with its YAML-based workflows.

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

    Could you do a video on how to implement docker for this process?

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

      Thanks for your comment and interest in the video! I'll definitely consider creating a tutorial on implementing Docker for this process. Stay tuned for updates on my channel!

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

      @@webwizard8 Sounds great, thank you!

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

      @@tomhardy7734 mean time I'd recommend watching this video - th-cam.com/video/YDNSItBN15w/w-d-xo.html

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

    Hi
    Is it possible to create the action using other branch?

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

    I am not getting _work folder

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

      did you find it

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

    sir can we do the same process for MERN stack application deployment and if i changed the source code and again i merged with the existing code in the github means will the application already deployed in the ec2 also change simultaneously or we need to restart the server? i'm a student sir please reply for this question. And i wants to reach you personally is there any possible way to contact you?

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

    Please how to auto deploy laravel rest API on AWS EC2 | CI/CD pipeline using github Actions and apache

  • @AmrendraChaudhary-o9r
    @AmrendraChaudhary-o9r 11 หลายเดือนก่อน

    Hey I have been setuped all the things but I'm unable to connect api I'm getting 404 error
    can you help me any of one

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

    We neet to download Ubuntu in Laptop?

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

    I want to understand. Why ubuntu? Is there a specific reason or prejudice?

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

      Almost 90 percentage of website run on Linux server remotely. That's why Ubuntu is first choice of all.

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

    before i used github action and self hosted runner, i manually push my repo to my server. so currently i start using it and now i have issue where after the workflow fully deployed, the file has been changed inside _work file, but my server is running at my home directory, how to solve this?

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

      did you configured nginx web server? see the video where I've showed nginx configuration, this might help
      the role of using github actions workflow is to clone our github repo into _work folder whenever a change made to our github main branch
      once the repo is available inside _work then its our responsibility to make use of web server like nginx and redirect requests to the localhost port
      pm2 plays role for starting and restarting your express server

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

      @@webwizard8 so i have to pm2 start the nodejs file inside my _work folder? In my nginx, i configured it to detect /api/ and also my react build file that has been placed in /var/www/html, do i have to change this?

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

    Hey I have been set-up all the things as per your guideline but I'm unable to connect api, I am getting 404 error
    can you help me any of one

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

      404 means not found error
      You need to verify the route has been implemented in your api

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

    How to make this http api request with https

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

    SSL kese kre bolo bhia

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

    how can I start my Next.js project using pm2 command?

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

    Hi bro very nice video but can you help me ????
    when i on pm2 start i recive 502 gatway error message and I can't fix it,,, i dont understand it .. please help me ???

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

      If nginx is having problem reaching out to the web server then you'll encounter 502 bad gateway error
      So culprit would be your express server
      make sure to run pm2 start command inside your repo folder where server.js file exists
      observe the video from 30:45 onwards

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

    These runners are getting stopped after some days

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

      Hi, Thanks for bringing up to the notice, I'd recommend going through this docs once - docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#usage-limits

    • @NarayanMaity-z5n
      @NarayanMaity-z5n ปีที่แล้ว

      @@webwizard8 hey I have a question if this self hosted runners and workflows are stopped after a certain time does this effect on my application which is in aws

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

      @@NarayanMaity-z5n
      It will not affect you application, but new pushes will not be reflected there.

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

    bakit parang malungkot ka?

  • @neutralengineer3873
    @neutralengineer3873 3 หลายเดือนก่อน +1

    Keep zooming screen

  • @ttaylor9916
    @ttaylor9916 3 หลายเดือนก่อน +1

    Would be great without the music.

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

    I want make https request how to implement that,i have a https setup in my node server,since i am developing a mobile app i used https requests

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

    no git, but lots of music references....

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

    At this moment, you pollute the whole environment with background noise and expect someone to “watch, subscribe and share”?? 😂

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

    Thank u bro ..

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

      You're welcome! Thank you for watching!