Setup CI/CD on AWS for NestJS(NodeJS)

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 41

  • @rockybkk8920
    @rockybkk8920 Рік тому +3

    Thank you it was a great hands-on of nestjs with aws, keep up the good work.
    I have one request please create a video only on complex unit test with nest Js using typeorm and specially getting rid of circular dependencies issues. That would be very much appreciated.

    • @computingpower
      @computingpower  Рік тому +1

      I’m glad you liked it! I’ll prepare a video about this topic, thanks for the suggestion!

  • @xfeesl
    @xfeesl Рік тому +2

    I’m learning nest and your videos helping me a lot, thanks !

  • @bede_hampo
    @bede_hampo 11 днів тому +1

    Thank you very much.
    What you recommended approach, if i want to to set up two environment. one for production, while the other for development.

    • @computingpower
      @computingpower  11 днів тому

      Excellent question! The way I accomplished this was by having two different projects, one for production and another for development:
      1. One ElasticBeanstalk environment for development + one code pipeline project for development
      2. One ElasticBeanstalk environment for production + one code pipeline project for production
      Some tips:
      1. When configuring CodePipeline project, you can reuse the same CodeBuild setup for both: staging and environment
      2. You can setup different source branches on GitHub for each CodePipeline project, one branch for development and another for production
      I hope this helps

  • @souhailDevv
    @souhailDevv Рік тому +1

    great content on your channel, please keep posting :)

  • @tallessalmon
    @tallessalmon Рік тому +2

    🎉🎉 Thanks man, It's fix my problem

  • @ScarlettDanger
    @ScarlettDanger 8 місяців тому +1

    Great tutorial!

    • @computingpower
      @computingpower  8 місяців тому

      Um glad you liked it 🙌🏼 If you any more content about a specific topic, please let me know!

  • @matheusferreira265
    @matheusferreira265 Рік тому +1

    In my case, I had a problem; maybe you could have had the same issue. To summarize, the application needed to have a route '/', but in my case, it didn't exist. As a result, the server returned a 502 status from Nginx.

    • @computingpower
      @computingpower  Рік тому +2

      Yes correct! The default route '/' is used by the Health checker to check if your application is working correctly

  • @simbolmina
    @simbolmina Рік тому +2

    Thanks man. AWS has everything yet you cant do anything if you really dont know what to do. I was strugling to find this guide for a few wekk, finally algorithm goods showed mercy and I found you.
    btw until I add Procfile server did not run and link does not have https

    • @computingpower
      @computingpower  Рік тому +1

      I'm glad to hear that the video was helpful :) ! For enabling HTTPS on the link, I have another video doing this by using Route53 and ACM along a shared load balancer here: ua-cam.com/video/XhGc_IM959A/v-deo.html I hope it helps!

    • @simbolmina
      @simbolmina Рік тому +1

      @@computingpower thanks again. subscribed.

  • @randymxd06
    @randymxd06 Рік тому +2

    Can you make a video of this same thing but with github actions and docker instead of codepipeline?

    • @computingpower
      @computingpower  Рік тому +2

      So, it would be:
      Github + Github actions + app deployed on ECS (dockerized app)?
      Or deploy it on ElasticBeanstalk with Docker?

    • @randymxd06
      @randymxd06 Рік тому +2

      @@computingpower Github + Github actions + app deployed on ECS (dockerized app)
      That's what I've been looking for on blogs and UA-cam but I haven't found someone who does the complete CI/CD flow, that is, I upload a change to a branch of a github repository and it runs a pipeline that uploads the app and execute the docker commands, for example a docker compose up and the changes are reflected in an EC2 instance or it can be with the ECS service as well, I like the way you explain things, you do it in a way where everything is clear, I want to see that process but with a Nest.js application it can be done.

    • @computingpower
      @computingpower  Рік тому +2

      @@randymxd06 Nice! I'll put this in my TODO list of videos and start working on it!

    • @computingpower
      @computingpower  Рік тому +1

      possibly it can take a few weeks because right now, I'm already working on another video, but I'll try to speed up

    • @randymxd06
      @randymxd06 Рік тому +1

      @@computingpower Thank you very much, I would really appreciate it, your content is very good, let me tell you that I have seen several videos from your channel and they have helped me in the company I currently work for

  • @SkillnoMusic
    @SkillnoMusic 4 місяці тому +1

    hi, where can we see the nestjs logs?

    • @computingpower
      @computingpower  4 місяці тому

      Hello, when an application runs on ElasticBeanstalk, you can find its logs on Logs section on ElasticBeanstalk console for your created environment.
      1. Go to your deployed app on ElasticBeanstalk
      2. Go to logs section
      3. Click on dropdown menu and select either last 100 lines or entire logs for your app (each option can be better on different scenarios)

    • @SkillnoMusic
      @SkillnoMusic 4 місяці тому +1

      @@computingpower thx

  • @NatnaelAwel
    @NatnaelAwel Рік тому

    Thanks for the content, but I want to use https for my backend since I am using it to react native application, how do i do that without having domain name, using the default address given by AWS

    • @computingpower
      @computingpower  Рік тому

      I'm glad you liked it!
      As far as I know, for configuring HTTPS on ElasticBeanstalk, you must own a domain because you will have to set up the SSL certificate (directly on the instance or via Load Balancer), and you can only do this if you own the domain. Unfortunately, the default URL provided by ElasticBeanstalk does not have HTTPS.
      Another solution would be using API Gateway for your application since the domain created by API Gateway uses HTTPS by default.

  • @uafkhurram
    @uafkhurram Місяць тому

    where i can deploy free nestjs?

    • @computingpower
      @computingpower  26 днів тому

      Hello, unfortunately all tools I used aren’t free. You can make some optimizations to reduce costs or use free tier on some services, but completely free may be a bit hard to find out

  • @hackerwhite7957
    @hackerwhite7957 Рік тому

    my piple is success but getting 502 error any one can help ?? on elastic beanstalk

    • @computingpower
      @computingpower  Рік тому

      Hello. To start the investigation, I suggest to you to start investigating the following things:
      1. Check on the environment properties if you have the PORT variable. Nginx uses this variable to route the messages from port 80 to the actual port of your application
      2. Check on the logs section for your ElasticBeanstalk app if the application is running correctly
      3. Check if you added the Procfile in the codebase with the correct instructions to start your application

    • @computingpower
      @computingpower  Рік тому

      Please let me know if these suggestions worked ✌️

    • @hackerwhite7957
      @hackerwhite7957 Рік тому

      @@computingpower There is one error of saying can't not find module, loader 1080 chat gpt and me too tired still no solution is there please help

    • @computingpower
      @computingpower  Рік тому

      @@hackerwhite7957 are you trying to deploy an application that uses OpenAI SDK ?

    • @hackerwhite7957
      @hackerwhite7957 Рік тому

      @@computingpower No I wrote my backend in Nest js and I uploaded on Github and I setup CodePipe Line and CodeBuild
      One more thing I just allow 8080 port in inbound in security group the error is now 504 Timeout

  • @rishabhahuja171
    @rishabhahuja171 Рік тому +1

    github repo?

    • @computingpower
      @computingpower  Рік тому +1

      Here it is: github.com/Mpcsj-Computing/NestJSAndStableDiffusion