Web Development with Node and Express
Leveraging the JavaScript Stack
Publisher: O'Reilly Media
Final Release Date: July 2014
Pages: 330

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.

Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyWeb Development with Node and Express
 
4.5

(based on 11 reviews)

Ratings Distribution

  • 5 Stars

     

    (7)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

91%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (9)
  • Well-written (9)
  • Concise (4)
  • Helpful examples (4)

Cons

No Cons

Best Uses

  • Novice (7)
  • Intermediate (5)
  • Student (3)
    • Reviewer Profile:
    • Developer (9)

Reviewed by 11 customers

Sort by

Displaying reviews 1-10

Back to top

Previous | Next »

 
2.0

Excellent book with serious flaws in the source code

By Jakub Vosahlo

from Velvary, Czech Republic

About Me Developer

Verified Reviewer

Pros

  • Concise
  • Easy to understand
  • Well-written

Cons

  • Too many errors

Best Uses

  • Novice
  • Student

Comments about oreilly Web Development with Node and Express:

I have read a number of books on the topic and so far this is the very best on to read. It is very well structured, covers a wide number of topics in enough detail to enable the reader to orient herself easily and be able to continue in more depth. Author expresses himself in a very clean way, it is a pleasure for a non-native reader as myself to read such work. On all topics there is a lot of reference being cited, many potential issues are explained or we get a pointer where to read more, if the detail is outside of the book.

I was more then happy before I started to try the code samples in real. First, I need to point out that I am a beginner with both NodeJS and ExpressJS. First chapters worked like a charm and I learned so much of new stuff there! Then I hit hard bottom join chapter 5 - it took me about an hour of trial and error when I was trying to make the cross page test code samples to work. Only after I looked into unconfirmed errata on this site I found that I cannot use the most up-to-date version of zombie library.

I spent almost three hours yesterday trying to resolve another issues in chapter 7. I am not able to make the partials code to work, I submitted the report in the errata. I am not sure, whether the problem is not caused by using a more recent version of express-handlebars, but even if that would be the case, I would still give the low rating again. What use is to me this book, when the code samples go obsolete after a number of months since publication?

The two stars are really an expression of my frustration. Should I encounter no or only minor issues with getting the code work, this is certainly a work deserving five star rating. If the author submits error for the issues in the book and makes the pdf version up-to-date, I would be happy to change my opinion...

(1 of 1 customers found this review helpful)

 
5.0

The only book you should need for Express

By evolvingtech

from Brooklyn, NY

About Me Developer

Verified Reviewer

Pros

  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Intermediate

    Comments about oreilly Web Development with Node and Express:

    Express (with Node.js) is very popular and there are many sources scattered throughout the Internet. There are several challenges: most sources are not comprehensive, a lot of the same information is repeated from website to website, and they skirt around the details on how to do things properly; especially towards an eye of building application code in a production setting.

    There are many things that this book does well.

    * The writing is very clear.
    * It doesn't skimp on the details.
    * It doesn't get lost in the details.
    * Good coding practices are provided so that as your application gets progressively more complex, the app doesn't become unwieldy.

    That said, there are a few caveats. This book favors using Handlebars as the tempting engine over Jade (the templating engine that's generally wedded to Express). For some people this could be a problem. The author argues that Jade abstracts away the detailed control that developers need with HTML and that Handlebars works the other way around. I am sure there are people who would counter this view. I have to say, the author is spot on correct.

    I personally have no problem with choosing one templating engine over another. The difficulty is that when you scour the Internet for how to work with different templating engines, all you keep running into is Jade, more Jade examples, and almost nothing else. You do so some references to another templating tool called Swig, but the examples are never really covered in detail.

    To use this book effectively you really should have some understanding of Node.js under your belt (enough to know about how to use npm, have some understanding of callbacks, etc.). You should also have some knowledge of Express (you don't need too much, because this book shows you how to code Express apps correctly).

    In reading the 25 pages of the book (the introductory chapters) I gleaned more about Express than most other books, articles, tutorials or screencast.

    Also, you really need to be comfortable with coding. For instance, the author suggests using a package called express3-handlebars. The version of handlebars incorporated into the git repository on the master branch is 2.0 (as of the date of this review). There exists another branch on the same repository in which the 3.0 version of handlebars has been merged. I wanted to use the more up to date version, so I had to do a little extra work/tweaks to get the right version in my codebase.

    This is not covered in the book. It's not an item worth worrying over because, I am sure future versions of express-handlebars will merge the 3.0 handlebars into the master branch.

    Also, there are alternative ways to set up Express, such as by using an npm package called 'consolidate', which allow you to pick from any of a number of templating engines.

    This book stands out amongst most programming/coding books in that it gives a lot of attention to things you need to do if you want to build production applications (and not a toy or academic examples). A lot is said on QA/software testing, clustering, stress testing, security, etc.

    There is one topic I wish had been covered in the book... websockets with possibly a package like Socket.IO.

    If your goal is to be building a serious application with Node & Express but may be starting from relatively little experience with Node or Express, this is about the best book you can get.

     
    4.0

    A thorough introduction

    By Nick Dowling

    from London

    Verified Reviewer

    Comments about oreilly Web Development with Node and Express:

    The book is a well written and thorough introduction to building websites using Express on top of node. But good luck to you if you want to get the sample code working. You need to install so many packages and sign up for a (free) mongoDB database at MongoLab, but even following all the instructions in the book it does not work for me.

    })(connect.session.Store);
    ^
    TypeError: Cannot read property 'Store' of undefined
    at module.exports (/home/pi/Downloads/web-development-with-node-and-express-master/node_modules/session-mongoose/index.js:261:23)

    Whether this is a problem with the sample code or the third party package concerned is beyond the ken of anyone who is likely to need to read this book.

    (1 of 4 customers found this review helpful)

     
    5.0

    Great introduction to Node & Express

    By Mattias

    from Malmö, Sweden

    About Me Developer

    Verified Buyer

    Pros

    • Easy to understand
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Web Development with Node and Express:

      This book was a great help when I started on a new Node project for a customer. Very well written and easy to read.

      (4 of 4 customers found this review helpful)

       
      5.0

      Practical Approach To Node/Express

      By Larry from LI

      from Long Island, NY

      About Me Developer

      Verified Reviewer

      Pros

      • Easy to understand
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice

        Comments about oreilly Web Development with Node and Express:

        This book offers a very practical and understandable approach to getting a web application up and running with Node.js and Express. Having read a few other Node.js books, I found this book to be more useful to my actual development as it covered many of the implementation issues you will likely run into during the development process. I purchased the book in September 2014 and it uses Express 4 which is much appreciated.

        (3 of 3 customers found this review helpful)

         
        5.0

        Easy to read and understand. Love it.

        By Michal

        from Bratislava, Slovakia

        About Me Developer

        Verified Buyer

        Pros

        • Easy to understand
        • Well-written

        Cons

          Best Uses

          • Novice

          Comments about oreilly Web Development with Node and Express:

          I am not new to JavaScript, actually I do know it pretty well and I also have deep understanding of .Net. What I needed was to be able to build NodeJS apps with Express as fast as possible. This book was just the right thing - it covers a lot of useful topics.

          Doesn't go always very deep, but gives a nice overview, gets your attention to the areas, explains you which modules to use, how to use them for basic setup, etc. It's also very easy to read and I was actually enjoying and looking forward to each new chapter.

          True, sometimes it might go bit deeper, but then it would get quite big and who would love to read it, right? I've finished the book in a few days, sometimes I go back to it as a reference (e.g. when need to lookup module name, basic usage, etc), while building the app.

          I would for sure recommend it to everyone with similar needs to mine - get the basics quickly and do not miss any important concern at the beginning. You can always get details about modules from their documentations, but this book gives you very solid bases on which you can build.

          (1 of 1 customers found this review helpful)

           
          5.0

          Covers Express 4

          By sandyboy55

          from Bangalore, India

          About Me Designer, Developer

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate
            • Novice
            • Student

            Comments about oreilly Web Development with Node and Express:

            I used this product as I had to define a new architecture for my team without using Spring MVC but using Angular with Node and Express. This book came out just in time to help me.

            The language is really good and the flow is clear. No Jade (which is good) but an alternative like Handlebars for scaffolding. That really shows that the author has made it practical for use at work not just a hello world approach.

            It also covers implementing MVC in Express, Security, and integrating with 3rd party APIs.

            The book would have been greater than great if it had provided a brief coverage of how to manage implementing a combined Node+Express (front-end) and a Java (back-end) project. Maybe that would be been outside the scope of the book so I still rate this book 5-star.

            (4 of 4 customers found this review helpful)

             
            5.0

            Great book for getting started

            By Matt

            from Utah

            About Me Developer

            Verified Buyer

            Pros

            • Easy to understand
            • Well-written

            Cons

              Best Uses

              • Novice

              Comments about oreilly Web Development with Node and Express:

              Everything is presented simply and the text is easy to read.

              This book eschews the use of Jade in favor of handlebars. I think this was a great switch and really appreciated seeing a book go with another view engine. Express is great but I just can't stomach using Jade, so this book fit the bill for me perfectly.

              (3 of 4 customers found this review helpful)

               
              4.0

              Excellent Read

              By Wizard

              from Winnipeg,MB

              About Me Designer, Developer

              Verified Reviewer

              Pros

              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

              • Uses Express 3

              Best Uses

              • Student

              Comments about oreilly Web Development with Node and Express:

              The book is incredibly easy to follow and the order of content and learning material make this an effective book for people interested in Node and Ember.

              This may be due to the early release nature of the book, but early on you're introduced to "Meadowlark" which is the main example. The author promises to keep using and building upon this one example until you have a fully functioning Node.js website. Halfway through the book the examples become detached and hard to follow, the application of the examples is explained but the relevance to the main example is skewed more and more towards the end.

              The examples in the book are also based around the Express (3.x) framework which contains many plugins that have been detached or deprecated from Express (4.X).

              Other than those main issues, the book is an excellent read and will be even better when it is finished.

              (3 of 4 customers found this review helpful)

               
              5.0

              It contains much than you expect

              By lraboteau

              from Biscarrosse, France

              Verified Buyer

              Comments about oreilly Web Development with Node and Express:

              This preview contain much than you expect on Express Framework...Hope the final version will cover the 4th version.

              Displaying reviews 1-10

              Back to top

              Previous | Next »

               
              Buy 2 Get 1 Free Free Shipping Guarantee
              Buying Options
              Immediate Access - Go Digital what's this?
              Ebook: $25.99
              Formats:  DAISY, ePub, Mobi, PDF
              Print & Ebook: $32.99
              Print: $29.99