NodeJS + Pug: How to create reusable layouts (header, footer)
Updated: Feb 06, 2024
Overview When building web applications, maintaining a consistent look and feel across your pages is essential. Using NodeJS together with Pug (formerly known as Jade), a high-performance template engine, can significantly simplify the......
NestJS: Connecting to Different Databases Based on Routes
Updated: Feb 06, 2024
Overview In modern web development, the need to interact with multiple databases within a single application is increasingly common. This requirement arises from various business needs, including separating data storage for security......
Sequelize.js: How to Drop FOREIGN KEY Constraints
Updated: Feb 06, 2024
Introduction Sequelize is a powerful library for Node.js applications that makes it easier to manage SQL databases. It enables developers to work with data in a more high-level, abstracted way compared to traditional SQL queries. One......
How to read a QR code image in Node.js
Updated: Feb 05, 2024
Introduction QR codes have become a ubiquitous part of our digital experience, enabling quick access to information, websites, and much more. For developers looking to integrate QR code reading capabilities into their Node.js......
How to generate QR codes in Node.js
Updated: Feb 05, 2024
Introduction to QR Codes QR codes (Quick Response codes) are two-dimensional barcodes that can store a significant amount of data, which can be scanned using smartphones and other devices. They offer a quick and efficient means of......
How to create a fixed-size collection with MongooseJS
Updated: Feb 01, 2024
Introduction Dealing with fast-growing databases can present significant challenges, particularly when you want to maintain a fixed-size collection where old data is seamlessly removed to make room for new entries. This behavior is......
How to install NPM modules globally without ‘sudo’ (3 ways)
Updated: Jan 28, 2024
Introduction Node Package Manager (NPM) is an essential tool for JavaScript developers as it serves as the default package manager for the JavaScript runtime environment Node.js. By default, installing global packages using NPM......
Node.js: How to programmatically run Git commands
Updated: Jan 28, 2024
Node.js is a powerful server-side platform built on Google Chrome’s JavaScript Engine (V8 Engine). It offers developers a way to build scalable network applications. One powerful feature of Node.js is its ability to run shell......
How to Implement a Shopping Cart in ExpressJS
Updated: Jan 22, 2024
Introduction Building a robust shopping cart is essential for any e-commerce website. In this tutorial, we will go through the step-by-step process of implementing a user-friendly shopping cart using ExpressJS, a fast, unopinionated,......
Using Firebase Auth in Node.js: The Complete Guide
Updated: Jan 21, 2024
Introduction Integrating Firebase Auth into a Node.js application is essential for developers who need to manage user authentication with minimal hassle. This guide offers a step-by-step approach to using Firebase Auth in conjunction......
How to Set Up Firebase in Node.js (with TypeScript)
Updated: Jan 21, 2024
Overview Firebase is a comprehensive app development platform that comes with a suite of tools and services to help you develop high-quality apps, grow your user base, and earn more profit. Its services are hosted in the cloud and......
Express + Handlebars: Passing variables back and forth
Updated: Jan 18, 2024
Introduction Handlebars is a popular templating engine that can be integrated with Express, a Node.js web application framework. When developing web applications, a common task is passing data from the server to the client and vice......