JavaScript NestJS TypeScript

API with NestJS #8. Writing unit tests

This entry is part 8 of 8 in the API with NestJS

Testing our application can increase our confidence when it comes to creating a fully-functional API. In this article, we look into how we can test our application by writing unit tests. We do so by using some of the utilities built into NestJS, as well as the Jest library. If you would like to get […]

Express JavaScript NestJS TypeScript

API with NestJS #6. Looking into dependency injection and modules

This entry is part 6 of 8 in the API with NestJS

NestJS strives to focus on the maintainability and testability of the code. To do so, it implements various mechanisms such as the Dependency Injection. In this article, we inspect how NestJS can resolve dependencies by looking into the output of the TypeScript compiler. We also strive to understand the modular architecture that NestJS is built […]

JavaScript NestJS TypeScript

API with NestJS #3. Authenticating users with bcrypt, Passport, JWT, and cookies

This entry is part 3 of 8 in the API with NestJS

Authentication is a crucial part of almost every web application. There are many ways to approach it, and we’ve handled it manually in our TypeScript Express series. This time we look into the passport, which is the most popular Node.js authentication library. We also register users and make their passwords secure by hashing. You can find all […]

Git

Getting geeky with Git #3. The branch is a reference

This entry is part 3 of 3 in the Getting geeky with Git

Branches are the bread and butter of a software developer using a Version Control System (VCS) of any kind. Today we explore how they work in Git. In the previous part of this series, we’ve learned that a commit is a full snapshot of the project state. In Git, the branch is a pointer to a […]