Article
In this article, we are going to take a look at what CORS is, how you can configure CORS with Express, and how to customize the CORS middleware to your needs. What is CORS CORS is shorthand for Cross-Origin Resource Sharing. It is a mechanism to allow or restrict requested...
Janith Kasun
In this article, we are going to talk about JavaScript Template Literals. They were also called Template Strings prior to the ES2015 specification. Other than that, we are also going to cover what Tagged Template Literals are and how we can use them with regular Template Literals. What is a...
Axios is a Promised-based JavaScript library that is used to send HTTP requests. You can think of it as an alternative to JavaScript's native fetch() function. We will be using features such as Promises, async/await, and other modern JavaScript design patterns in this tutorial. If you'd like to get...
In this tutorial, we are going to take a look at Node's native EventEmitter class. You'll learn about events, what you can do with an EvenEmitter, and how to leverage events in your application. We'll also cover what other native modules extend from the EventEmitter class and some examples to...
In this article, we are going to take a look at how to use the Handlebars template engine with Node.js and Express. We'll cover what template engines are and how Handlebars can be used to create Server Side Rendered (SSR) web applications. We will also discuss how to configure...
A few years back, callbacks were the only way we could achieve asynchronous code execution in JavaScript. There were few problems with callbacks and the most noticeable one was "Callback hell". With ES6, Promises were introduced as a solution to those problems. And finally, the async/await keywords...
In this article, we will discuss how to integrate PostgreSQL with Node.js. In order to better follow this article, we'd recommend that you have prior experience using Node.js and SQL statements. We will be using simple javascript ES6 syntax in this article. There are a few different clients...
In this article, we are going to talk about how to use the MongoDB database with Node.js. There are couple of ways to do this, including the a popular approach - using an Object Modeling Library. Mongoose is an example of such a library in Node.js, however, we...
In this article, we will be talking about how JSON Web Tokens works, what are the advantages of them, their structure, and how to use them to handle basic authentication and authorization in Express. You do not have to have any previous experience with JSON Web Tokens since we will...
© 2013-2024 Stack Abuse. All rights reserved.