Book Image

Node Cookbook - Fourth Edition

By : Bethany Griggs
4 (1)
Book Image

Node Cookbook - Fourth Edition

4 (1)
By: Bethany Griggs

Overview of this book

A key technology for building web applications and tooling, Node.js brings JavaScript to the server enabling full-stack development in a common language. This fourth edition of the Node Cookbook is updated with the latest Node.js features and the evolution of the Node.js framework ecosystems. This practical guide will help you to get started with creating, debugging, and deploying your Node.js applications and cover solutions to common problems, along with tips to avoid pitfalls. You'll become familiar with the Node.js development model by learning how to handle files and build simple web applications and then explore established and emerging Node.js web frameworks such as Express.js and Fastify. As you advance, you'll discover techniques for detecting problems in your applications, handling security concerns, and deploying your applications to the cloud. This recipe-based guide will help you to easily navigate through various core topics of server-side web application development with Node.js. By the end of this Node book, you'll be well-versed with core Node.js concepts and have gained the knowledge to start building performant and scalable Node.js applications.
Table of Contents (14 chapters)

What this book covers

Chapter 1, Introducing Node.js 14, serves as an introduction to Node.js, including covering how to install Node.js 14 and access the relevant API documentation.

Chapter 2, Handling I/O, focuses on core Node.js APIs that allow us to interact with standard I/O, the filesystem, and the network.

Chapter 3, Streams, Streams, 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.

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, Exploring Node.js Web Frameworks, showcases how you can build Node.js web applications with four of the leading web frameworks.

Chapter 7, Working with 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, providing an introduction to the key testing frameworks, tape, Mocha, and Jest.

Chapter 9, Securing Node.js Applications, demonstrates common attacks that can be made against a Node.js application and how we can mitigate these attacks.

Chapter 10, Performance Optimization, demonstrates 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.