- Paperback: 392 pages
- Publisher: Manning Publications; 2 edition (September 17, 2017)
- Language: English
- ISBN-10: 1617292575
- ISBN-13: 978-1617292576
- Product Dimensions: 7.2 x 1.2 x 9.5 inches
- Shipping Weight: 1.4 pounds (View shipping rates and policies)
- Average Customer Review: 5 customer reviews
- Amazon Best Sellers Rank: #339,946 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Node.js in Action 2nd Edition
Use the Amazon App to scan ISBNs and compare prices.
"Rebound" by Kwame Alexander
Don't miss best-selling author Kwame Alexander's "Rebound," a new companion novel to his Newbery Award-winner, "The Crossover,"" illustrated with striking graphic novel panels. Pre-order today
Frequently bought together
Customers who bought this item also bought
Customers who viewed this item also viewed
From the Publisher
About this Book
The first edition of Node.js in Action was about web development with a particular focus on the Connect and Express web frameworks. Node.js in Action, Second Edition has been updated to suit the changing requirements of Node development. You’ll learn about front-end build systems, popular Node web frameworks, and how to build a web application with Express from scratch. You’ll also learn how to create automated tests and deploy Node web applications.
Node is being increasingly used for command-line developer tools and desktop applications with Electron, so you’ll find chapters dedicated to both of these areas.
This book is organized into three parts.
Part 2, the largest section of the book, focuses on web application development. Chapter 4 dispels some of the mystery around front-end build systems: if you’ve ever had to use webpack or Gulp in a project but didn’t really understand it, this is the chapter for you. Chapter 5 reviews some of the most popular server-side frameworks available for Node, and chapter 6 goes into Connect and Express in more depth. Chapter 7 is dedicated to templating languages, which can improve your productivity when writing server-side code. Most web applications need a database, so chapter 8 covers the many types of databases that you can use with Node, from relational to NoSQL. Chapters 9 and 10 deal with testing and deployment, and this includes cloud deployment.
Part 3 goes beyond web application development. Chapter 11 is about building command-line applications with Node so you can create developer-friendly text interfaces. If you’re excited about the prospect of building desktop apps such as Atom with Node, then take a look at chapter 12, which is all about Electron.
We’ve also included three detailed appendixes. Appendix A has instructions on how to install Node for macOS and Windows. Appendix B is a detailed tutorial on web scraping, and appendix C reviews each of the officially supported middleware components for the Connect web framework.
About the Author
Bradley Meck is a Node.js contributor, with lots of operational experience from load balancing to systems design. Has used Linux / BSD in production and dev ops.
Mike Cantelon is a web programmer with 10 years of experience in bespoke and product-oriented web application development
T.J. Holowaychuk is a prolific open-source engineer who has backed Node since its infancy. He has also authored many robust Node.js modules, including the popular Express web framework, Cluster, Stylus, and Jade, among many others.
Nathan Rajlich is an active Node developer who has been working with Node since its early days. He has authored an impressive collection of Node modules including NodObjC and maintains a port of Node that runs on Apple's iOS.
Author interviews, book reviews, editors picks, and more. Read it now
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
There's also an issue where at least one section (still working through the book) doesn't work the way the author's describe. In the Adding Basic Authentication section the author(s) are first mistaken about how a third party lib works (basic-auth), and then write an auth middleware package that doesn't actually authorize the credentials being passed to it. They parse the auth-headers, attempt to validate them against the data store, and when no user comes back due to incorrect creds, they just keep on going and allow the original query to go through to the caller. (pg 150 - 153)
This new second edition, released in September 2017, has a different lineup of authors and co-authors, and it takes a practical, informative and up-to-date approach to introducing Node.js’s main capabilities and features. The new edition also digs deeper into developing, testing and deploying web applications. It discusses templates that can be used with Node, the strengths and weaknesses of several web frameworks, and the process of deploying Node applications. The book also gives insights into build tools such as Webpack and Gulp and using Node with NoSQL or relational databases.
“To reflect the realities a Node developer now faces, we’ve restructured the book,” the authors note. “There is less focus on Express and Connect, and more focus on a broader range of technologies. Everything you need to be a full-stack developer is here, including front-
end build systems, choosing a web framework, working with databases in Node, writing tests, and deploying web apps.
(My thanks to Manning for providing an advance reading copy for review.)
It covered testing of Node apps including explanation of differences between TDD (test driven development) and BDD (behavior driven development), as well the various tools (Mocha, Should.js, and the asset module). However, I would have like for it to have covered Chai and Sinon as well. I was glad that it covered Jade, which is the default template language of Node.