What this book covers
Chapter 1, Introducing Node.js 22, serves as an introduction to Node.js, including covering how to install Node.js 22, access the relevant API documentation, and an introduction to the Node.js event loop.
Chapter 2, Interacting with the File System, focuses on core Node.js APIs that allow us to interact with standard I/O, the filesystem, and the network.
Chapter 3, Working with Streams, explores the fundamentals of Node.js streams.
Chapter 4, Using Web Protocols, demonstrates how to work with the web protocols at a low level using Node.js core APIs, including the recently added Fetch API.
Chapter 5, Developing Node.js modules, teaches how the Node.js module system works, and demonstrates how you can create and publish your own modules to the npm
registry.
Chapter 6, Working with Fastify –The Web Framework, introduces Fastify, the fastest and most efficient web framework for Node.js. Emphasizing developer experience and application performance, Fastify adheres to web standards for reliability and compatibility. This chapter guides you through creating an API starter, splitting the code into plugins, and exploring Fastify’s key features such as encapsulation, data validation, performance enhancement with serialization, and configuring and testing a Fastify application from scratch.
Chapter 7, Persisting to Databases, demonstrates how you can persist data to a variety of databases with Node.js, covering both SQL and NoSQL variants.
Chapter 8, Testing with Node.js, teaches the fundamentals of testing Node.js applications, introducing key testing frameworks and tools, such as various testing libraries, stubbing HTTP requests, browser automation, and configuring continuous integration tests.
Chapter 9, Dealing with Security, demonstrates common attacks that can be made against a Node.js application and how we can mitigate these attacks.
Chapter 10, Optimizing Performance, demonstrates the workflows and tools we can use to identify bottlenecks in Node.js applications.
Chapter 11, Deploying Node.js Microservices, teaches how to build a microservice and deploy it to the cloud using container technologies.
Chapter 12, Debugging Node.js, showcases tooling and techniques for debugging Node.js applications.