JavaScript NestJS TypeScript

API with NestJS #38. Setting up recurring payments via subscriptions with Stripe

This entry is part 38 of 48 in the API with NestJS

In this series, we’ve implemented a few different ways of charging our users using Stripe. So far, all of those cases have included single payments. With Stripe, we can also set up recurring payments using subscriptions. Recurring payments are a popular approach nowadays in many businesses. The users save a credit card and get billed […]

JavaScript NestJS TypeScript

API with NestJS #36. Introduction to Stripe with React

This entry is part 36 of 48 in the API with NestJS

Nowadays, a lot of web applications accept online payments. Although this is not straightforward to implement, there are some ready-to-use solutions that we can take advantage of. In this article, we look into Stripe. It serves as a payment processing platform that does the heavy lifting for us. To implement it, we use NestJS and […]

JavaScript SQL

Range types in PostgreSQL and TypeORM

Sometimes when working with databases, we need to represent a range of values. For example, we might want to define a set of available numbers or a range of dates. One way to do that would be to create two columns that hold the bound values.

Above, we are using the timestamp with timezone […]

JavaScript

Uncaught errors in Node.js and the browser

When writing code, we can expect a wide range of errors to happen. We should handle it by writing our code with that in mind. Even though that’s the case, some errors might slip through the cracks. This article looks into what happens with unhandled errors both in Node.js and in the browser. Errors in […]