Express in Action
256 pages
English
PDF
4.5

Express in Action

Express in Action

Author:

Year:

Summary:

Introduction

The book "Express in Action" (original title Express in Action) by Evan Hahn is a practical guide to building web applications on the Node.js platform using the popular Express framework. Published in 2016, it remains a relevant source of knowledge for anyone who wants to master server-side development in JavaScript. The book is 256 pages long and offers the reader not only theory but also many code examples that can be immediately applied in real projects.

What the book is about

The book systematically introduces the reader to the basics of Express, starting with installation and setup, and ending with advanced topics such as security, testing, and application deployment. The author pays special attention to practical aspects: routing, working with middleware, handling requests and responses, integrating with databases (MongoDB, SQL via ORM), authentication, and authorization. Separate chapters are dedicated to creating REST APIs, working with template engines (Pug, EJS), and performance optimization.

Who this book is for

The book will be useful for:

  • Beginner developers already familiar with the basics of JavaScript and Node.js, but wanting to learn Express to build full-fledged web applications.
  • Frontend developers who want to expand their skills towards server-side development.
  • Students and teachers of web technology courses.
  • Self-taught learners who prefer a practical approach with many examples.

What the reader will learn

After reading the book, the reader will be able to:

  • Install and configure Express in a Node.js project.
  • Create routes and handle HTTP requests (GET, POST, PUT, DELETE).
  • Use middleware for logging, authentication, and error handling.
  • Work with template engines to generate dynamic HTML pages.
  • Integrate databases (MongoDB via Mongoose, SQL via Sequelize).
  • Implement authentication and authorization (sessions, JWT).
  • Create REST APIs with CORS support and versioning.
  • Test applications using Mocha and Chai.
  • Deploy a finished application on hosting (Heroku, AWS).
  • Ensure basic security (protection against XSS, CSRF, SQL injections).

Strengths

The book is distinguished by its clear structure and accessible language. Each chapter contains practical tasks and examples that can be completed while reading. The author does not overload the reader with unnecessary details, but provides enough information for a confident start. The chapters on middleware and security are especially noteworthy — they are written so clearly that even a beginner can understand these complex topics. Additionally, the book contains many links to official documentation and additional resources, allowing readers to deepen their knowledge on topics of interest.

Who it is recommended for

I recommend this book to anyone who wants to quickly and effectively learn Express for building modern web applications. It will be an excellent supplement to the official documentation and will help avoid common mistakes made by beginners. If you already have basic knowledge of Node.js and want to move on to real development — "Express in Action" will be your reliable guide.

Recommendations