Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Build a secure JWT login system in Node.js with this comprehensive guide. Learn to implement registration, login, refresh tokens, and logout with best practices for security. Discover how to use short-lived access tokens, HTTP-only cookies, and server-side refresh token storage for a robust authentication flow. Includes practical examples, middleware implementation, and tips for scaling and production deployment. Avoid common pitfalls and enhance security with bcrypt, HTTPS, and input validation.
Build a TODO app with a Node.js, Express, and MongoDB backend plus a Vue 3 frontend. Learn CRUD endpoints, JWT authentication, pagination, filtering, and user-specific todo data.
This article covers essential aspects like log levels, structured JSON logging, asynchronous writing, file rotation strategies, and integration with centralized logging systems (ELK, Datadog). Discover when a custom solution is preferable to existing libraries like Winston or Pino, and how to build a lightweight, efficient, and secure logger tailored to your specific application needs.
Discover how Node.js empowers real-time applications with instant updates, live dashboards, and interactive experiences. Explore its event-driven architecture, WebSocket support, and scalability for building responsive systems. Learn to ingest, process, and deliver data at high speed, creating applications that feel alive and genuinely helpful. Dive into practical examples with Socket.IO, streaming data, and real-time analytics.
This article clarifies the roles of package.json and package-lock.json. Learn how package.json defines dependencies and project metadata, while package-lock.json ensures consistent installs across environments by locking exact versions. Understand the impact of deleting package-lock.json and best practices for reliable Node.js development.
This article provides a step-by-step approach to diagnose and resolve the issue, covering common causes like incorrect module names, missing dependencies, pathing problems, and cache corruption. Learn how to verify installations, fix file paths, manage the NODE_PATH environment variable, and utilize absolute paths for robust module resolution.
This article walks you through setting up a project, writing failing tests first, implementing code to pass them, and refactoring with confidence. Discover how TDD improves code quality, reduces bugs, and simplifies maintenance for Node.js applications, including API testing. Master a practical workflow for building reliable and scalable applications.
This article provides a comprehensive introduction to this popular web framework, covering key features like routing, middleware, and template engines. Learn how to install, set up, and use Express.js to build robust APIs and web applications. Discover real-world use cases and the advantages of using Express.js for your next project.
This ultimate guide covers everything from installation and schema definition to CRUD operations, middleware, and relationship population. Learn how to build scalable and reliable applications with MongoDB by leveraging Mongoose's schema-based modeling, built-in validation, and readable queries.
Explore how Node.js revolutionized web development, bridging the frontend/backend gap with JavaScript. Discover its event-driven architecture, thriving NPM ecosystem, and impact on real-time applications and microservices. Learn how Node.js empowers full-stack JavaScript developers, enhances performance, and simplifies modern web application development.
Node.js remains one of the top tools for building APIs. Not because it’s the newest or flashiest, but because it consistently delivers where it matters: speed, ecosystem, and scalability
This article is about implementing rate limiting in a Node.js API. Learn the why and how, compare algorithms (fixed window, sliding window, token bucket, leaky bucket), and see working Express middleware examples (in-memory and Redis-backed) with best practices for headers, testing, and production hardening.
This article explains in simple words what a Buffer is in Node.js, how it works, and when it should be used. It provides detailed examples in JavaScript for better understanding.
This article explains in simple words the common use cases of Node.js, including APIs, real-time applications, streaming, and microservices. It provides detailed explanations, practical JavaScript examples, and a clear summary at the end.
This article explains in simple words the differences between spawn, exec, and fork in Node.js. Each method is explained with detailed points, practical examples, and a summary at the end.
This article explains in simple words the global objects available in Node.js, their uses, and provides detailed examples in JavaScript.
In this article, we will explore various methods to enhance the performance and scalability of a Node.js application. We’ll use simple words, practical examples, and best practices to make sure you can easily apply them in real projects.
This article explains in simple words how to debug performance issues, memory leaks, and blocked event loops in Node.js applications. Each concept is broken down into easy-to-understand points, with examples to make it practical.
This article explains the different ways to handle errors in a Node.js application using simple words and clear examples. It covers types of errors, error-handling techniques, and best practices.
This article explains the most commonly used design patterns in Node.js, such as Module, Singleton, Factory, and others. Each concept is explained in simple words with code examples to help you understand where and how to use them.
This article explains what child processes, worker threads, and clustering are in Node.js. It uses simple words and examples to help you understand how they work and when to use them.
This article explains what middleware is in Node.js, with a special focus on Express.js. It uses simple words and clear examples to help you understand how middleware works and why it’s important.
Node.js is a fast, scalable JavaScript runtime for building server-side apps. With event-driven, non-blocking I/O and a huge NPM ecosystem, it’s ideal for real-time apps, APIs, and full-stack development.
This article explains what environment variables are, why they are important in Node.js applications, and how to manage them effectively using simple steps and examples.
This article explains what npm is, the role of package-lock.json, and the purpose of the npm ci command in Node.js projects, using clear and simple language with examples.
This article explains the differences between require() and import in Node.js, when to use each, how they work under the hood, and their impact on performance and compatibility.
This article explains what streams and buffers are in Node.js, how they work, why they are important, and how to use them effectively with code examples.
This article explains in simple words the difference between synchronous and asynchronous programming in Node.js, how they work step-by-step, their pros and cons, and when to use each. It includes JavaScript examples clearly marked for easy understanding.
This article explains the concept of the Event Loop in Node.js, why it exists, how it works step-by-step, and how it allows asynchronous, non-blocking operations in a single-threaded environment. Includes clear JavaScript examples to make the topic easier to understand.
This article explains in simple words why Node.js is designed to be single-threaded, the role of its event-driven architecture, and how it achieves concurrency using the event loop, asynchronous operations, and non-blocking I/O. Includes clear explanations and code examples in JavaScript.
Everything on Node.js, not only its articles: the Node.js page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article