cta quote button

Best Nodejs Books to Read

Read More

How Much Does It Cost to Hire Web Developers in Ukraine?

Our pricing is completely transparent: you pay your engineers’ salaries and a flat monthly fee for our services. No hidden charges.

Read More

1. Learn NodeJS in 1 Day: Complete Node JS Guide with Examples (2016)

Node.js supports both client and server side applications. It is based on JavaScript and is very fast in operation. These distinctive features made node.js as one of the most powerful framework in the Java Ecosystem. JavaScript alone allows you to build real-time and scalable mobile and web applications. With this e-book, you will explore more on the node.js framework and how to use it efficiently for web development.

Average developers or beginners who struggle to understand node.js basics will find this book very helpful and productive. The book tried to put examples that simplify problems usually faced by the users like how asynchronous code works, what are modules, how big file can be read, node.js express, etc. You will find that lots of concepts that take a long time to master can be learned in a day or two.

If this is your first interaction with node.js and don’t want all sort of troubles that arise with the node, this edition is recommended. After going through this e-book, node.js will become an absolute pleasure.

Table of content

Chapter 1: Introduction

What is node.js

Why use Node.js

Features of Node.js

When to use and not use Node.js

Chapter 2: Download & Install Node.js

How to install node.js

Installing node through a package manager

Running your first Hello world application in Node.js

Chapter 3: Modules

What are modules in Node.js

Using modules in Node.js

Creating NPM modules

Extending modules

Publishing NPM Modules

Managing third party packages with npm

What is the package.json file

Chapter 4: Create Server and Get Data

Chapter 5: Node.js with Express

What is Express.js

Installing and using Express

What are Routes

Sample Web server using express.js

Chapter 6: Node.js with MongoDB

Node.js and NoSQL Databases

Using MongoDB and Node.js

How to build a node express app with MongoDB to store and serve content

Chapter 7: Promise, Generator, Event and Filestream

What are promises

Callbacks to promises

Generating promises with the BlueBird library

Creating a custom promise

Callbacks vs generators

Filestream in Node.js

Emitting Events

Chapter 8: Testing with Jasmine

Overview of Jasmine for testing Node.js applications

How to use Jasmine to test Node.js applications

Author(s): Krishna Rungta

2. Learning Node: Moving to the Server-Side (2016)

Take your web development skills from browser to server with Node—and learn how to write fast, highly scalable network applications on this JavaScript-based platform. Updated for the latest Node Long Term Support (LTS) and Node Current (6.0) releases, this hands-on edition helps you master Node’s core fundamentals and gain experience with several built-in and contributed modules.

Get up to speed on Node’s event-driven, asynchronous I/O model for developing data-intensive applications that are frequently accessed but computationally simple. If you’re comfortable working with JavaScript, this book provides many programming and deployment examples to help you take advantage of server-side development with Node.

  • Explore the frameworks and functionality for full-stack Node development
  • Dive into Node’s module system and package management support
  • Test your application or module code on the fly with Node’s REPL console
  • Use core Node modules to build web applications and an HTTP server
  • Learn Node’s support for networks, security, and sockets
  • Access operating system functionality with child processes
  • Learn tools and techniques for Node development and production
  • Use Node in microcontrollers, microcomputers, and the Internet of Things

Author(s): Shelley Powers

3. Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node (2017)

Assemble the complete stack required to build a modern web app using React: MongoDB (a NoSQL database) and Express (a framework for web application servers), which runs on Node (JavaScript on the server side), complement React very nicely. This book will also cover many other tools that go into building a complete web application: React Router, React-Bootstrap, Redux, Babel, and webpack.
Though the primary focus of Pro MERN Stack is to equip you with all that is required to build a full-fledged web application, a large portion of the book will be devoted to React.
The popular MEAN (MongoDB, Express, AngularJS, Node) stack introduced Single Page Apps (SPAs) and front-end Model-View-Controller (MVC) as new and efficient paradigms. But it has its shortcomings such as lack of support for SEO friendly server-side rendering and being too prescriptive by being a framework.
Facebook’s React is a technology that competes indirectly with AngularJS. It is not a full-fledged MVC framework. It is a JavaScript library for building user interfaces (in some sense the View part). Yet, it is possible to build a web app by replacing AngularJS with React – hence the term MERN stack.

What You Will Learn

  • Discover the details of React, the React Way, and how to get the maximum out of this library
  • See the basics of MongoDB, Express, and Node, enough to build a web app
  • Work with other tools complementary to React, including React-Bootstrap and React Router
  • Use the tools required to build JavaScript based SPAs 
  • Tie all the components together to build a complete web app.

Who This Book Is For

Developers and architects who have prior experience in any web app stack other than the MERN stack will find the book useful to learn about this modern stack. Prior knowledge of JavaScript, HTML, and CSS is required.

Author(s): Vasan Subramanian

4. Node.js in Action (2017)

Summary

Node.js in Action, Second Edition is a thoroughly revised book based on the best-selling first edition. It starts at square one and guides you through all the features, techniques, and concepts you’ll need to build production-quality Node applications.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

You already know JavaScript. The trick to mastering Node.js is learning how to build applications that fully exploit its powerful asynchronous event handling and non-blocking I/O features. The Node server radically simplifies event-driven real-time apps like chat, games, and live data analytics, and with its incredibly rich ecosystem of modules, tools, and libraries, it’s hard to beat!

About the Book

Based on the bestselling first edition, Node.js in Action, Second Edition is a completely new book. Packed with practical examples, it teaches you how to create high-performance web servers using JavaScript and Node. You’ll master key design concepts such as asynchronous programming, state management, and event-driven programming. And you’ll learn to put together MVC servers using Express and Connect, design web APIs, and set up the perfect production environment to build, lint, and test.

What’s Inside

  • Mastering non-blocking I/O
  • The Node event loop
  • Testing and deploying
  • Web application templating

About the Reader

Written for web developers with intermediate JavaScript skills.

About the Authors

The Second Edition author team includes Node masters Alex Young, Bradley Meck, Mike Cantelon, and Tim Oxley, along with original authors Marc Harter, T.J. Holowaychuk, and Nathan Rajlich.

Table of contents

    PART 1 – WELCOME TO NODE

  1. Welcome to Node.js
  2. Node programming fundamentals
  3. What is a Node web application?
  4. PART 2 – WEB DEVELOPMENT WITH NODE

  5. Front-end build systems
  6. Server-side frameworks
  7. Connect and Express in depth
  8. Web application templating
  9. Storing application data
  10. Testing Node applications
  11. Deploying Node applications and maintaining uptime
  12. PART 3 – BEYOND WEB DEVELOPMENT

  13. Writing command-line applications
  14. Conquering the desktop with Electron

Author(s): Alex R. Young, Bradley Meck

5. A Smarter Way to Learn JavaScript. The new tech-assisted approach that requires half the effort (2014)

Learning JavaScript is hell because of two problems.
I remove the problems, and you start having fun.

The first problem is retention. You remember only ten or twenty percent of what you read. That spells failure. To become fluent in a computer language, you have to retain pretty much everything.

How can you retain everything? Only by constantly being asked to play everything back. That’s why people use flashcards. But my system does flashcards one better. After reading a short chapter, you go to my website and complete twenty interactive exercises. Algorithms check your work to make sure you know what you think you know. When you stumble, you do the exercise again. You keep trying until you know the chapter cold. The exercises are free.

The second problem is comprehension. Many learners hit a wall when they try to understand advanced concepts like variable scope and prototypes. Unfortunately, they blame themselves. That’s why the Dummies books sell so well. But the fault lies with the authors, coding virtuosos who lack teaching talent. I’m the opposite of the typical software book author. I’ll never code fast enough to land a job at Google. But I can teach.

Anyway, most comprehension problems are just retention problems in disguise. If you get lost trying to understand variable scope, it’s because you don’t remember how functions work. Thanks to the interactive exercises on my website, you’ll always understand and remember everything necessary to confidently tackle the next concept.

“I’ve signed up to a few sites like Udemy, Codecademy, FreeCodeCamp, Lynda, YouTube videos, even searched on Coursera but nothing seemed to work for me. This book takes only 10 minutes each chapter and after that, you can exercise what you’ve just learned right away!” —Amazon reviewer Constanza Morales

Better than just reading. And more fun.

You’ll spend two to three times as much time practicing as reading. It’s how you wind up satisfied, confident, and proud, instead of confused, discouraged, and defeated. And since many people find doing things more enjoyable than reading things, it can be a pleasure to learn this way, quite apart from the impressive results you achieve.

“Very effective and fun.” —Amazon reviewer A. Bergamini

Written especially for beginners.

I wrote the book and exercises especially for people who are new to programming. Making no assumptions about what you already know, I walk you through JavaScript slowly, patiently. I explain every little thing in sixth-grade English. I avoid unnecessary technical jargon like the plague. (Face it, fellow authors, it is the plague.)

“The layman syntax he uses…makes it much easier to suddenly realize a concept that seemed abstract and too hard to wrap your head around is suddenly not complicated at all.” — Amazon reviewer IMHO

The exercises keep you focused, give you extra practice where you’re shaky, and prepare you for each next step. Every lesson is built on top of a solid foundation that you and I have carefully constructed. Each individual step is small. But, as Amazon reviewer James Toban says, when you get to the end of the book, you’ve built “a tower of JavaScript.”

If you’re an accomplished programmer already, my book may be too elementary for you. (Do you really need to be told what a variable is?) But if you’re new to programming, more than a thousand five-star reviews are pretty good evidence that my book may be just the one to get you coding JavaScript successfully.

“Mark Myers’ method of getting what can be…difficult information into a format that makes it exponentially easier to consume, truly understand, and synthesize into real-world application is beyond anything I’ve encountered before.” —Amazon reviewer Jason A. Ruby

Author(s): Mark Myers

6. Web Development with MongoDB and NodeJS (2015)

Build an interactive and full-featured web application from scratch using Node.js and MongoDB

About This Book

  • Configure your development environment to use Node.js and MongoDB
  • Use Node.js to connect to a MongoDB database and perform data manipulations
  • A practical guide with clear instructions to design and develop a complete web application from start to finish

Who This Book Is For

This book is designed for JavaScript developers of any skill level that want to get up and running using Node.js and MongoDB to build full-featured web applications. A basic understanding of JavaScript and HTML is the only requirement for this book.

What You Will Learn

  • Configure your development environment to use Node.js and MongoDB
  • Write and configure a web server using Node.js powered by the Express.js framework
  • Build dynamic HTML pages using the Handlebars template engine
  • Persist application data using MongoDB and Mongoose ODM
  • Test your code using automated testing tools such as the Mocha framework
  • Deploy the development environment to the cloud using services such as Heroku, Amazon Web Services, and Microsoft Azure
  • Explore Single-Page application frameworks to take your web applications to the next level

In Detail

Node.js and MongoDB are quickly becoming one of the most popular tech stacks for the web. Powered by Google’s V8 engine, Node.js caters to easily building fast, scalable network applications while MongoDB is the perfect fit as a scalable, high-performance, open source NoSQL database solution. Using these two technologies together, web applications can be built quickly and easily and deployed to the cloud with very little difficulty.

The book will begin by introducing you to the groundwork needed to set up the development environment. Here, you will quickly run through the steps necessary to get the main application server up and running. Then you will see how to use Node.js to connect to a MongoDB database and perform data manipulations.

From here on, the book will take you through integration with third-party tools for interaction with web apps. It then moves on to show you how to use controllers and view models to generate reusable code that will reduce development time. Toward the end of the book, we will cover tests to properly execute the code and some popular frameworks for developing web applications.

By the end of the book, you will have a running web application developed with MongoDB and Node.js along with it’s popular frameworks.

Style and approach

An easy guide to Node.js and MongoDB, which will quickly introduce you to the relevant concepts by taking you through the different steps involved in building a full-fledged web application.

Author(s): Mithun Satheesh, Bruno Joseph D’mello

7. Web Development with Node and Express: Leveraging the JavaScript Stack (2014)

Learn how to build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this hands-on guide, author Ethan Brown teaches you the fundamentals through the development of a fictional application that exposes a public website and a RESTful API. You’ll also learn web architecture best practices to help you build single-page, multi-page, and hybrid web apps with Express.

Express strikes a balance between a robust framework and no framework at all, allowing you a free hand in your architecture choices. With this book, frontend and backend engineers familiar with JavaScript will discover new ways of looking at web development.

  • Create webpage templating system for rendering dynamic data
  • Dive into request and response objects, middleware, and URL routing
  • Simulate a production environment for testing and development
  • Focus on persistence with document databases, particularly MongoDB
  • Make your resources available to other programs with RESTful APIs
  • Build secure apps with authentication, authorization, and HTTPS
  • Integrate with social media, geolocation, and other third-party services
  • Implement a plan for launching and maintaining your app
  • Learn critical debugging skills

    This book covers Express 4.0.

Author(s): Ethan Brown

8. Node.js Design Patterns – Second Edition: Master best practices to build modular and scalable server-side web applications (2016)

Get the best out of Node.js by mastering its most powerful components and patterns to create modular and scalable applications with ease

About This Book

  • Create reusable patterns and modules by leveraging the new features of Node.js
  • Understand the asynchronous single thread design of node and grasp all its features and patterns to take advantage of various functions.
  • This unique guide will help you get the most out of Node.js and its ecosystem.

Who This Book Is For

The book is meant for developers and software architects with a basic working knowledge of JavaScript who are interested in acquiring a deeper understanding of how to design and develop enterprise-level Node.js applications.

Basic knowledge of Node.js is also helpful to get the most out of this book.

What You Will Learn

  • Design and implement a series of server-side JavaScript patterns so you understand why and when to apply them in different use case scenarios
  • Become comfortable with writing asynchronous code by leveraging constructs such as callbacks, promises, generators and the async-await syntax
  • Identify the most important concerns and apply unique tricks to achieve higher scalability and modularity in your Node.js application
  • Untangle your modules by organizing and connecting them coherently
  • Reuse well-known techniques to solve common design and coding issues
  • Explore the latest trends in Universal JavaScript, learn how to write code that runs on both Node.js and the browser and leverage React and its ecosystem to implement universal applications

In Detail

Node.js is a massively popular software platform that lets you use JavaScript to easily create scalable server-side applications. It allows you to create efficient code, enabling a more sustainable way of writing software made of only one language across the full stack, along with extreme levels of reusability, pragmatism, simplicity, and collaboration. Node.js is revolutionizing the web and the way people and companies create their software.

In this book, we will take you on a journey across various ideas and components, and the challenges you would commonly encounter while designing and developing software using the Node.js platform. You will also discover the ‘Node.js way’ of dealing with design and coding decisions.

The book kicks off by exploring the basics of Node.js describing its asynchronous single-threaded architecture and the main design patterns. It then shows you how to master the asynchronous control flow patterns, and the stream component and it culminates into a detailed list of Node.js implementations of the most common design patterns, as well as some specific design patterns that are exclusive to the Node.js world. Lastly, it dives into more advanced concepts such as Universal Javascript, and scalability, concluding the journey by giving you all the necessary concepts to be able to build an enterprise grade application using Node.js.

Style and approach

This book takes you through a comprehensive explanation allowing you to create scalable and efficient real-time server-side apps.

Table of Contents

  1. Welcome to the Node.js Platform
  2. Node.js Essential Patterns
  3. Asynchronous Control Flow Patterns with ES2015
  4. Coding with Streams
  5. Design Patterns
  6. Wiring Modules
  7. Universal JavaScript for Web Applications
  8. Advanced Asynchronous Recipes
  9. Scalability and Architectural Patterns
  10. Messaging and Integration Patterns

Author(s): Mario Casciaro, Luciano Mammino

9. Node.JS Web Development – Third Edition (2016)

Create real-time server-side applications with this practical, step-by-step guide

About This Book

  • Learn about server-side JavaScript with Node.js and Node modules through the most up-to-date book on Node.js web development
  • Understand website development both with and without the Connect/Express web application framework
  • Develop both HTTP server and client applications

Who This Book Is For

This book is for anybody looking for an alternative to the “P” languages (Perl, PHP, and Python), or anyone looking for a new paradigm of server-side application development. You should have at least a rudimentary understanding of JavaScript and web application development.

What You Will Learn

  • Install and use Node.js for both development and deployment
  • Use the Express application framework
  • Configure Bootstrap for mobile-first theming
  • Use data storage engines such as MySQL, SQLITE3, and MongoDB
  • Understand user authentication methods, including OAuth, with third-party services
  • Deploy Node.js to live servers, including microservice development with Docker
  • Perform unit testing with Mocha
  • Perform functional testing of the web application with CasperJS

In Detail

Node.js is a server-side JavaScript platform using an event driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications running in real time. Node.js Web Development shows JavaScript is not just for browser-side applications. It can be used for server-side web application development, real-time applications, microservices, and much more.

This book gives you an excellent starting point, bringing you straight to the heart of developing web applications with Node.js. You will progress from a rudimentary knowledge of JavaScript and server-side development to being able to create and maintain your own Node.js application. With this book you’ll learn how to use the HTTP Server and Client objects, data storage with both SQL and MongoDB databases, real-time applications with Socket.IO, mobile-first theming with Bootstrap, microservice deployment with Docker, authenticating against third-party services using OAuth, and much more.

Style and Approach

This book is a practical guide for anyone looking to develop striking and robust web applications using Node.js.

Author(s): David Herron

10. Node.js 8 the Right Way: Practical, Server-Side JavaScript That Scales (2018)

Node.js is the platform of choice for creating modern web services. This fast-paced book gets you up to speed on server-side programming with Node.js 8, as you develop real programs that are small, fast, low-profile, and useful. Take JavaScript beyond the browser, explore dynamic language features, and embrace evented programming.Harness the power of the event loop and non-blocking I/O to create highly parallel microservices and applications. This expanded and updated second edition showcases the latest ECMAScript features, current best practices, and modern development techniques.

JavaScript is the backbone of the modern web, powering nearly every web app’s user interface. Node.js is JavaScript for the server. This greatly expanded second edition introduces new language features while dramatically increasing coverage of core topics. Each hands-on chapter offers progressively more challenging topics and techniques, broadening your skill set and enabling you to think in Node.js.

Write asynchronous, non-blocking code using Node.js’s style and patterns. Cluster and load balance services with Node.js core features and third-party tools. Harness the power of databases such as Elasticsearch and Redis. Work with many protocols, create RESTful web services, TCP socket clients and servers, and more. Test your code’s functionality with Mocha, and manage its life cycle with npm. Discover how Node.js pairs a server-side event loop with a JavaScript runtime to produce screaming fast, non-blocking concurrency. Through a series of practical programming domains, use the latest available ECMAScript features and harness key Node.js classes and popular modules. Create rich command-line tools and a web-based UI using modern web development techniques.

Join the smart and diverse community that’s rapidly advancing the state of the art in JavaScript development.

What You Need:

  • Node.js 8.x
  • Operating system with bash-like shell
  • OMQ (pronounced “Zero-M-Q”) library, version 3.2 or higher
  • Elasticsearch version 5.0 or higher
  • jq version 1.5 or higher
  • Redis version 3.2 or higher
  • Author(s): Jim Wilson

    11. Getting MEAN with Mongo, Express, Angular, and Node (2015)

    Summary

    Getting MEAN with Mongo, Express, Angular, and Node teaches readers how to develop web applications end-to-end using the MEAN stack. You’ll systematically discover each technology in the MEAN stack as you build up an application one layer at a time, just as you’d do in a real project.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

    About the Technology

    Traditional web dev stacks use a different programming language in every layer, resulting in a complex mashup of code and frameworks. Together, the MongoDB database, the Express and AngularJS frameworks, and Node.js constitute the MEAN stack—a powerful platform that uses only one language, top to bottom: JavaScript. Developers and businesses love it because it’s scalable and cost-effective. End users love it because the apps created with it are fast and responsive. It’s a win-win-win!

    About the Book

    Getting MEAN with Mongo, Express, Angular, and Node teaches you how to develop web applications using the MEAN stack. First, you’ll create the skeleton of a static site in Express and Node, and then push it up to a live web server. Next, you’ll add a MongoDB database and build an API before using Angular to handle data manipulation and application logic in the browser. Finally you’ll add an authentication system to the application, using the whole stack. When you finish, you’ll have all the skills you need to build a dynamic data-driven web application.

    What’s Inside

    • Full-stack development using JavaScript
    • Responsive web techniques
    • Everything you need to get started with MEAN
    • Best practices for efficiency and reusability

    About the Reader

    Readers should have some web development experience. This book is based on MongoDB 2, Express 4, Angular 1, and Node.js 4.

    About the Author

    Simon Holmes has been a full-stack developer since the late 1990s and runs Full Stack Training Ltd.

    Table of Contents

      PART 1 SETTING THE BASELINE
    1. Introducing full-stack development
    2. Designing a MEAN stack architecture
    3. PART 2 BUILDING A NODE WEB APPLICATION
    4. Creating and setting up a MEAN project
    5. Building a static site with Node and Express
    6. Building a data model with MongoDB and Mongoose
    7. Writing a REST API: Exposing the MongoDB database to the application
    8. Consuming a REST API: Using an API from inside Express
    9. PART 3 ADDING A DYNAMIC FRONT END WITH ANGULAR
    10. Adding Angular components to an Express application
    11. Building a single-page application with Angular: Foundations
    12. Building an SPA with Angular: The next level
    13. PART 4 MANAGING AUTHENTICATION AND USER SESSIONS
    14. Authenticating users, managing sessions, and securing APIs
    15. APPENDIXES
    1. Installing the stack
    2. Installing and preparing the supporting cast
    3. Dealing with all of the views
    4. Reintroducing JavaScript – available online only

    Author(s): Simon Holmes

    12. Express in Action: Writing, building, and testing Node.js applications (2016)

    Summary

    Express in Action is a carefully designed tutorial that teaches you how to build web applications using Node and Express.

    Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

    About the Technology

    Express.js is a web application framework for Node.js. Express organizes your server-side JavaScript into testable, maintainable modules. It provides a powerful set of features to efficiently manage routes, requests, and views along with beautiful boilerplate for your web applications. Express helps you concentrate on what your application does instead of managing time-consuming technical details.

    About the Book

    Express in Action teaches you how to build web applications using Node and Express. It starts by introducing Node’s powerful traits and shows you how they map to the features of Express. You’ll explore key development techniques, meet the rich ecosystem of companion tools and libraries, and get a glimpse into its inner workings. By the end of the book, you’ll be able to use Express to build a Node app and know how to test it, hook it up to a database, and automate the dev process.

    What’s Inside

    • Simplify Node app setup with Express
    • Testing Express applications
    • Use Express for easy access to Node features
    • Data storage with MongoDB
    • Covers Express 4 and Express 5 alpha

    About the Reader

    To get the most out of this book, you’ll need to know the basics of web application design and be proficient with JavaScript.

    About the Author

    Evan Hahn is an active member of the Node and Express community and contributes to many open source JavaScript projects.

    Table of Contents

      PART 1 INTRO

    1. What is Express?
    2. The basics of Node.js
    3. Foundations of Express
    4. PART 2 CORE

    5. Middleware
    6. Routing
    7. Building APIs
    8. Views and templates: Pug and EJS
    9. PART 3 EXPRESS IN CONTEXT

    10. Persisting your data with MongoDB
    11. Testing Express applications
    12. Security
    13. Deployment: assets and Heroku
    14. Best practices

    Author(s): Evan Hahn