Using a Node.js Headless CMS (CMS stands for Content Management System) will help you quickly build a fast and high-performance self-hosted backend for your application with many pre-made things like an admin dashboard, content CRUD......
Node.js helps us build fast and high-performance backends for websites and mobile apps of all sizes. This job is made easier and more convenient thanks to the help of open-source frameworks. In this article, we will walk through a list......
This article is about using subqueries with query builders in TypeORM. Let’s say we have an entity named Product: // KindaCode.com - Example // Product entity import { Entity, PrimaryGeneratedColumn, Column, } from......
When using TypeORM to interact with databases, there might be occasions when you want to take records and sort them based on a relational field. There are 2 solutions for this: using find options and using a query builder. Let’s......
This concise, straight-to-the-point article gives a few quick examples of using AND and OR operators in TypeORM. No more rambling; let’s get our hands dirty by writing some code. Creating a sample entity In the coming......
When working with TypeORM, there might be cases where you want to exclude one or multiple columns (fields) from being selected. This succinct article will show you two different ways to do that. Make a column unselectable when......
This article walks you through a list of the best open-source HTTP request libraries for Node.js in the year 2023. Without any further ado (like talking about the history of Node or explaining what HTTP is), let’s dive right into......
ORM stands for Object-Relational Mapping, which maps between Object Model and a Relational Database like MySQL, PostgreSQL, MS SQL, SQLite, etc. ODM is the abbreviation for Object Data Model that maps between an Object Model and a......
This article walks you through 3 different ways to generate a random string in Node.js. The first two approaches only use self-written code and utilize the built-in functionality of Node.js. The last approach introduces to you some......
This article walks you through a bunch of different ways to read JSON files in Node.js. Without any further ado, let’s get our hands dirty by writing some code. Getting Started This is the sample JSON file used in the......
If you’re building a Node.js application with ES modules instead of CommonJS modules (“import” instead of “require”, in simpler terms), you have to do something before writing __filename and __direname in......
This article walks you through a couple of different ways to get user input from the console in a Node.js program. The first approach is to do things from scratch with only built-in features of Node.js. The second one is to archive the......