NestJS

API with NestJS #102. Writing unit tests with Prisma

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

Covering our NestJS application with unit tests can help us create a reliable product. In this article, we introduce the idea behind unit tests and implement them in an application working with Prisma. In this article, we continue the code developed in API with NestJS #33. Managing PostgreSQL relationships with Prisma Introducing unit tests A […]

AWS

API with NestJS #100. The HTTPS protocol with Route 53 and AWS Certificate Manager

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

In the latest articles, we deployed our NestJS application using AWS. However, we’ve been exclusively using the HTTP protocol so far. You probably noticed that almost every website nowadays uses HTTPS. And no wonder, because it solves a bunch of problems and makes surfing the internet more secure. In this article, we prepare our architecture […]

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. […]