How to Use Error Handler Middleware with Express.js and TypeScript

Note: This post is part of Learn How to Use TypeScript With Node.js and Express.js series. Click here to see the first post of the series. What is an Error Handler in Express.js? Error handlers in Express.js are in charge of catching and handing errors that happen during runtime. By default, Express.js provides with a … Read more

How to Use Application-Level Middleware with Express.js and TypeScript

Note: This post is part of Learn How to Use TypeScript With Node.js and Express.js series. Click here to see the first post of the series. What Are Application-Level Middleware and Why Do We Need Them? Application-level middleware is a type of middleware that generally runs throughout the whole application. In the case of express.js, … Read more

How to Use Third-Party Middleware with Express.js and TypeScript

Note: This post is part of Learn How to Use TypeScript With Node.js and Express.js series. Click here to see the first post of the series. Third-party middlewares are a good alternative when there is a package available out there offering functionality that our API will need such as allowing client access from different origins … Read more

How to Write Node.js REST Middleware with Express.js with TypeScript

Note: This post is part of Learn How to Use TypeScript With Node.js and Express.js series. Click here to see the first post of the series. What is a Middleware in Node.js/Express.js? A middleware is essential in the development of an application, in our case an API. As the name suggests, middleware is a process … Read more

How to Set up RESTful API Routing using Express.js with TypeScript

Note: This post is part of Learn How to Use TypeScript With Node.js and Express.js series. Click here to see the first post of the series. Create API Endpoint Routes So far our server has only one API endpoint / which we defined in the index.ts returning a Hello World! message. app.get(‘/’, (req: Request, res: … Read more

Learn How to Use TypeScript With Node.js and Express.js

Introduction to a typed RESTful API development experience JavaScript is the language of choice when it comes to frontend development for the web. Advances in web development have led to the rise of multiple libraries and frameworks such as Vue, React, Angular, Svelte, and many others. A long time ago, JavaScript was seen as the … Read more

It’s Time To Destructure Objects in JavaScript

Destructure an Object in JavaScript Small

Prefer to watch the video? Did you know how to destructure an object in JavaScript? Looking to learn something new in JavaScript? Here is destructuring assignment for you. What is Destructuring Assignment? I know you want a technical explanation. However, I will explain it in simple words. The ability to define and assign values of … Read more