Node.js

Node.js is a JavaScript runtime that allows for server-side scripting, enabling the development of scalable network applications using a non-blocking, event-driven architecture.

Cursor-Based Pagination in SequelizeJS: Practical Examples

Updated: February 22, 2024 By: Guest Contributor

Introduction Cursor-based pagination is widely regarded as a superior method for paging through large sets of data. It offers numerous advantages over traditional offset-based pagination, such as consistent…

MongooseJS: Cursor-Based Pagination Examples

Updated: February 22, 2024 By: Guest Contributor

Introduction When building applications with large datasets, effective pagination strategies become crucial for performance and user experience. MongooseJS, a popular MongoDB object modeling tool for Node.js, supports cursor-based…

Node.js: How to get location from IP address (3 approaches)

Updated: February 19, 2024 By: Guest Contributor

Introduction Disclosure and examination of visitor data, notably geographical location, are crucial in many web and network applications. Understanding your users’ locations can help tailor content, enforce security…

SequelizeJS: How to reset auto-increment ID after deleting records

Updated: February 19, 2024 By: Guest Contributor

Overview Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication,…

SequelizeJS: Grouping Results by Multiple Columns

Updated: February 19, 2024 By: Guest Contributor

Overview In this guide, we’ll explore multiple approaches to grouping results by more than one column using Sequelize, an ORM (Object Relational Mapping) library for Node.js. Grouping is…

NestJS: Using Faker.js to populate database (for testing)

Updated: February 14, 2024 By: Guest Contributor

Overview When building applications, testing with realistic data is crucial for spotting bugs and understanding how your application behaves under different circumstances. However, manually generating test data can…

NodeJS: Search and download images by keyword from Unsplash API

Updated: February 13, 2024 By: Guest Contributor

Overview In this tutorial, we will dive into how to search for and download images by keyword from the Unsplash API using Node.js. Unsplash is a platform powered…

NestJS: Generate N random users using Faker.js

Updated: February 13, 2024 By: Guest Contributor

Overview Creating realistic data for testing and development environments is a crucial part of software development. With NestJS, a progressive Node.js framework, and Faker.js, a popular library for…

NodeJS: Declaring types when using dotenv with TypeScript

Updated: February 6, 2024 By: Guest Contributor

Introduction Combining Node.js with TypeScript provides a robust environment for building scalable and maintainable applications. However, working with environment variables in such a type-safe environment can be a…

Using ExpressJS and Multer with TypeScript

Updated: February 6, 2024 By: Guest Contributor

Introduction When building a Node.js application with ExpressJS as the server framework and TypeScript as the language of choice, typing becomes an essential part of the development process….

1 2 3 56