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.
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
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.
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
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!
@@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 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
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)
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
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.
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
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 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
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.
I’m glad you liked it! I’ll prepare a video about this topic, thanks for the suggestion!
I’m learning nest and your videos helping me a lot, thanks !
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.
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
great content on your channel, please keep posting :)
🎉🎉 Thanks man, It's fix my problem
Great tutorial!
Um glad you liked it 🙌🏼 If you any more content about a specific topic, please let me know!
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.
Yes correct! The default route '/' is used by the Health checker to check if your application is working correctly
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
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!
@@computingpower thanks again. subscribed.
Can you make a video of this same thing but with github actions and docker instead of codepipeline?
So, it would be:
Github + Github actions + app deployed on ECS (dockerized app)?
Or deploy it on ElasticBeanstalk with Docker?
@@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.
@@randymxd06 Nice! I'll put this in my TODO list of videos and start working on it!
possibly it can take a few weeks because right now, I'm already working on another video, but I'll try to speed up
@@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
hi, where can we see the nestjs logs?
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)
@@computingpower thx
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
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.
where i can deploy free nestjs?
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
my piple is success but getting 502 error any one can help ?? on elastic beanstalk
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
Please let me know if these suggestions worked ✌️
@@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
@@hackerwhite7957 are you trying to deploy an application that uses OpenAI SDK ?
@@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
github repo?
Here it is: github.com/Mpcsj-Computing/NestJSAndStableDiffusion