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.7

(based on 10 reviews)

Ratings Distribution

  • 5 Stars

     

    (7)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

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

Cons

    Best Uses

    • Novice (6)
    • Intermediate (5)
      • Reviewer Profile:
      • Developer (8)

    Reviewed by 10 customers

    Sort by

    Displaying reviews 1-10

    Back to top

     
    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 3 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.

          (2 of 2 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 3 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.

                (6 of 6 customers found this review helpful)

                 
                4.0

                Easy to understand and to the point

                By Tom

                from Boise, ID

                About Me Developer

                Verified Buyer

                Pros

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

                Cons

                  Best Uses

                  • Intermediate
                  • Novice

                  Comments about oreilly Web Development with Node and Express:

                  I'm reviewing an early release version of the book so I'm only reviewing what is available. What I have read is good. The author walks through many things about development with node and express (3.x) that make it easy to understand how to build apps with node and express. It is done in a way that you get the concepts, not just that you have a recipe that you can blindly follow. Only hope that since this is an early release and express 4 is out the book will be updated to reflect that since there are significant changes in the way 3 and 4 work.

                  Displaying reviews 1-10

                  Back to top

                   
                  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