Mohammad Jawad (Kasir) Barati

Mohammad Jawad (Kasir) Barati @kasir-barati

About: Love to work with cutting edge technologies and on my journey to learn and teach. Having a can-do attitude and being industrious are the reasons why I question the status quo an venture in the unknown

Location:
Bremen, Germany
Joined:
Mar 13, 2021

Mohammad Jawad (Kasir) Barati
articles - 35 total

Write e2e tests for NestJS with testcontainers

So I was really annoyed last time I was trying to mock and have some tests for my NestJS app. So I...

Learn More 1 0Mar 28

GraphQL + NestJS + Interfaces + Unions

So guys I was really confused by the NestJS's doc as to ho you can have an API which can be invoked...

Learn More 0 0Mar 22

NestJS + AWS S3 + Multipart file upload + gRPC + e2e testing

So I was wondering how I can upload a file to AWS S3 over gRPC with a NodeJS/NestJS backend app. And...

Learn More 0 0Mar 9

Get a list of endpoints in your NestJS app

So here is how I get a list of all defined HTTP endpoints in my E2E test in a NestJS app with their...

Learn More 1 0Mar 7

AWS S3 - Multipart file upload - Surprise Bills

It is super easy to loss sight of AWS's hidden costs or at least somewhat hard to find unless you're...

Learn More 0 0Feb 15

NestJS + gRPC + step by step guide + e2e tests

What is RPC and how you can use it in NestJS is the question I had in mind to answer in this post....

Learn More 0 0Feb 2

When E2E Tests In NestJS Gives Me a Headache

Testing can be frustrating, especially when we do not have a well documented library/framework from...

Learn More 0 0Jan 24

Graphile -- Farewell Business Layer

So I am super duper excited about Graphile, I just finished listening to an insightful podcast from...

Learn More 0 0Jan 20

How to Read or Understand an Open-Source Projects

It's always supper fun to dig into coding and try to make sense of open-source libs. it's been a...

Learn More 0 0Dec 28 '24

Zero, One, Infinity Principle in Software Development

While reading Apollo's doc for Relay Connection pagination I encountered a new terminology, or let's...

Learn More 0 0Dec 25 '24

GraphQL query complexity + NestJS + Dataloader

I was doing some exploration around GraphQL query complexity, depth limitation, and how to...

Learn More 2 0Dec 24 '24

GraphQL + NestJS -- Part 1

So I have this job op with GraphQL requirements, thus I decided to prepare myself for the...

Learn More 2 0Dec 15 '24

Nx + TypeORM + NestJS + Migrations

Hi, I have been out in the wild looking for a good way to generate migrations with TypeORM in a...

Learn More 2 0Dec 11 '24

Recursive Conditional Types

Assume you have a for in loop and suddenly realize that your variable type is string and not a string...

Learn More 0 0Nov 23 '24

Module declaration in TS

Here we learn how to write a high-quality Typescript declaration file. So you're coding in ReactJS...

Learn More 0 0Nov 15 '24

Type guards, type predicates, assertion signatures, and branded types in TS

I love TS for a reason, and that is how easy and predictable it makes your code. Let's talk about...

Learn More 3 1Nov 11 '24

Implement reCAPTCHA in htmx + expressjs

Let's start with the most obvious question, why we need it? because reCAPTCHA is using advance risk...

Learn More 1 0Nov 6 '24

How to configure TSC + Webpack + ESM for NodeJS

Just had a revelation in how different tools work together thanks to hours of trying to build my Nx...

Learn More 0 0Nov 4 '24

Pagination in raw SQL with OFFSET

Update Stop using offset for pagination - Why it's grossly inefficient by u/fyzic in...

Learn More 0 0Nov 3 '24

Declaration Merging in TS

I love Typescript and how much it can improve your code quality, though it can sometimes give you a...

Learn More 0 0Nov 2 '24

Convert a ReactJS app from Vite to Nx

I had this repo called react and I used vite CLI to create my ReactJS app. But then I needed to add a...

Learn More 0 0Oct 29 '24

Discriminated unions in ReactJS

Hey folks, I am pretty excited to share this with you all. It is about how you can have better...

Learn More 0 0Oct 18 '24

htmx and ExpressJS

Why I am looking at htmx The reason behind me, embarking on another educational journey is...

Learn More 3 0Oct 17 '24

HTML/CSS tutoring sessions

Hey folks, Long time no post 😅, so here I am. Announcing the end of my journey as a tutor of...

Learn More 0 0Oct 14 '24

Test Stripe with MockServer

Hey folks, Have not been able to write integration test for your integrated Stripe in your NodeJS...

Learn More 0 0Sep 2 '24

PATCH vs PUT & idempotency in NestJS

Hi, Here we are going to show you a quick rundown on how to have a conforming RESTful API. You can...

Learn More 0 0Aug 16 '24

NestJS + class-validator

Hey folks, In 14.03.2022 I asked a question1 in class-validator repo about throwing an error when a...

Learn More 1 0Aug 10 '24

4 most used AWS EC2 instance types

Here is a very short but nonetheless handy version of 4 most used Amazon Web Services (AWS) EC2...

Learn More 0 0Aug 9 '24

S3 storage classes

Hey follks, what's up? I just had a really fun time making this cheatsheet like visualization for S3...

Learn More 0 0Aug 8 '24

Schema + Data migration in Prisma (adding a new mandatory field)

Here I was adding a new field to the users table. And since I had already my database deployed I...

Learn More 0 0Aug 7 '24