Category: TypeScript

AWS NestJS

API with NestJS #98. Health checks with Terminus and Amazon ECS

This entry is part 98 of 121 in the API with NestJS

In one of the previous parts of this series, we learned how to use the Elastic Container Service to deploy multiple instances of our application. With this architecture, we maintain the target group, where each target is a single instance of our application. Thanks to that, the load balancer can route a particular API request to […]

AWS NestJS

API with NestJS #97. Introduction to managing logs with Amazon CloudWatch

This entry is part 97 of 121 in the API with NestJS

In this series, we’ve learned how to use the logger built into NestJS. In this article, we learn how to manage the logs our NestJS application produces using Amazon CloudWatch. In this article, we assume you’re familiar with deploying NestJS applications using Amazon Elastic Constainer Service. If you want to know more about this topic, […]

Docker NestJS

API with NestJS #96. Running unit tests with CI/CD and GitHub Actions

This entry is part 96 of 121 in the API with NestJS

We should closely monitor the state of tests in our NestJS application. In a few previous parts of this series, we’ve used Docker and GitHub actions to design a CI/CD pipeline that automates our deployments. In this article, we avoid deploying faulty code by running unit tests before each pull request automatically. Preparing the Docker […]

AWS NestJS

API with NestJS #95. CI/CD with Amazon ECS and GitHub Actions

This entry is part 95 of 121 in the API with NestJS

In the last two parts of this series, we’ve explained the details of manually deploying our NestJS application with Amazon Elastic Compute Cloud. It’s a great idea to go through the above process by hand to understand it fully. The next step is automating it by implementing Continuous Integration and Continuous Delivery. In this article, […]

AWS NestJS

API with NestJS #93. Deploying a NestJS app with Amazon ECS and RDS

This entry is part 93 of 121 in the API with NestJS

In the last two parts of this series, we’ve dockerized our NestJS application. The next step is to learn how to deploy it. In this article, we push our Docker image to AWS and deploy it using the Elastic Container Service (ECS). Pushing our Docker image to AWS So far, we’ve built our Docker image locally. […]

NestJS SQL

API with NestJS #90. Using various types of SQL joins

This entry is part 90 of 121 in the API with NestJS

It’s a very common case to need to combine multiple related tables. In SQL, we can do that using a join statement. Therefore, this article explains various types of joins along with real-life examples. Inner joins A few articles ago, we defined the  and tables.

It’s typical to retrieve a particular post along […]

Express JavaScript NestJS

API with NestJS #89. Replacing Express with Fastify

This entry is part 89 of 121 in the API with NestJS

By default, NestJS uses Express under the hood. Moreover, since Express is very popular, NestJS can choose from a broad set of compatible third-party solutions. A significant advantage of NestJS is that it is framework-independent. Instead of using Express, we can use an adapter using another library with a similar request/response pipeline. The most popular […]