JavaScript NestJS TypeScript

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

This entry is part 3 of 10 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 […]


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

This entry is part 3 of 5 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 […]

Express JavaScript TypeScript

TypeScript Express tutorial #14. Code optimization with Mongoose Lean Queries

This entry is part 14 of 15 in the TypeScript Express tutorial

Mongoose does quite a bit of heavy-lifting for us. It is immensely useful, but not necessary in every case. In this article, we explore the Mongoose documents more and learn what we can achieve by giving up their benefits. Mongoose Document In the second part of this series, we’ve created our first models. They allow […]


Getting geeky with Git #2. Building blocks of a commit

This entry is part 2 of 5 in the Getting geeky with Git

As a developer, there is a high chance that you use Git every day. It means saving changes through commits. In this article, we look into what are their building blocks. This includes looking into the filesystem of Git and learning about different states of files. Git is a Distributed Version Control System To understand what […]

Git JavaScript

Getting geeky with Git #1. Remotes and upstream branches

This entry is part 1 of 5 in the Getting geeky with Git

Version control systems (VCS) are one of the essential tools of every programmer. The most popular one is Git, and therefore it is worth looking into it a bit more. In this article, we look into what is a remote and what the origin keyword means. We also check out what is an upstream branch and how we can benefit […]


Building forms using Formik with the React Hooks API and TypeScript

The Formik library keeps on growing and attempts to keep up with the React community. Formik, since version 2.0, has a built-in set of hooks. In this article, we go through all of them. We also look into how to use Formik with TypeScript. The basics of Formik with TypeScript Form handling in React might […]


What’s the deal with immutability in JavaScript?

The immutability is quite a buzzword lately. Today we attempt to find out why. In this article, we explain what the immutability is and how we can benefit from it. When defining immutability, we look into various aspects of it. We investigate primitive values, assignment immutability, and how to keep our data structures immutable. We also look […]