Node.js Typescript and Jest

Setting Up a Modern Node.js Project with TypeScript and Jest

In this guide, you’ll learn how to set up a Node.js project with TypeScript and Jest. The article takes you through each step, from initializing the project and configuring TypeScript to integrating Jest for testing. By following this tutorial, you’ll ensure your code is type-safe, well-tested, and ready for modern development.

REST API Delete Resource

REST API Delete Resource

In this article we will look at REST API Delete operation. Compared to Create and Update, Delete operation is fairly easy and straightforward. REST API Delete Implementation Below, we will outline the basic steps of Delete operation implementation. Please, watch our video for more in depth explanation of this concept. Route and Controller In routes/v1/travels…

HMAC Validation

In this HMAC Validation tutorial, we will define what HMAC is, its benefits, and implement HMAC validation as a middleware in an API project. HMAC stands for hash-based message authentication code. An HMAC algorithm works by hashing a message along with a secret key. The resulting hash is called a signature or digest. The message…

Repository Pattern in JavaScript

The Repository Pattern is a structural pattern that abstracts and centralizes data access operations, providing a consistent and simplified interface for the application to interact with data sources. In essence, the Repository Pattern acts as a mediator or a middleman between the application’s business logic and the data storage, shielding the rest of the code…