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

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

(based on 18 reviews)

Ratings Distribution

  • 5 Stars

     

    (12)

  • 4 Stars

     

    (4)

  • 3 Stars

     

    (2)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (13)
  • Easy to understand (12)
  • Helpful examples (9)
  • Accurate (6)
  • Concise (6)

Cons

No Cons

Best Uses

  • Intermediate (10)
  • Novice (10)
  • Student (5)
  • Expert (3)
    • Reviewer Profile:
    • Developer (15)

Reviewed by 18 customers

Displaying reviews 1-10

Back to top

Previous | Next »

 
3.0

Great start but ...

By lh

from casselberry, fl.

About Me Developer

Verified Reviewer

Pros

    Cons

      Best Uses

      • Intermediate

      Comments about oreilly Web Development with Node and Express:

      Good book, good coverage but the web forms (html) weren't shown except for the code. It helps to see the code and the actual forms displayed to the user.

      (2 of 2 customers found this review helpful)

       
      3.0

      Decent start, but not great

      By DevinH

      from Arvada, CO

      About Me Developer

      Pros

      • Accurate
      • Helpful examples

      Cons

      • Difficult to understand
      • Not comprehensive enough

      Best Uses

      • Intermediate

      Comments about oreilly Web Development with Node and Express:

      I have no prior experience with Node or JS or modern JS technologies, just the minimal JS you'd write to manipulate forms in the early 2000s. So this is where I decided to start, and just a few chapters in, I've found myself having to make a lot of assumptions or possibly some additional research elsewhere (which is what I was hoping to avoid by purchasing a book).

      Like I said, I'm just a few chapters in, but have already been asked to type "require('stuff')" quite a bit with no explanation as to what that is and what it does. It appears that it is some way to include modules, but again, that's just my assumption until I research it separately.

      I've also been asked to do a lot of callbacks in the form of function(req, res){...}. Again, I've had to assume that the "req" parameter holds the request object and the "res" parameter holds the response object. Maybe that's too obvious, but when you're just starting out, a single sentence would've been nice to just verify that.

      Maybe this review is too early, for maybe all that will be explained in more detail later on. Or maybe this is a hint as to what to expect throughout the rest of the book (here's a bunch of code to write, but we're not going to tell you too much about how it works). If my opinion changes as I get further along, I'll certainly amend the review.

       
      5.0

      Simply Amazing! Straight to the point and easy to understand

      By Rene007

      from New York, New York

      About Me Developer

      Pros

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

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly Web Development with Node and Express:

        One of the best books out there to learn the basics of web dev with node and express. Once you've read this book, you will no longer be lost on how to use node/express for backend development.

         
        4.0

        Nice introduction for beginners

        By endemic

        from Columbus, OH

        About Me Developer

        Verified Reviewer

        Pros

        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

        • Too basic

        Best Uses

        • Novice

        Comments about oreilly Web Development with Node and Express:

        A decent introduction into the Express ecosystem. Advanced developers won't pick up any new techniques, but will learn about some useful NPM modules.

         
        5.0

        a very useful and concise book

        By lixl

        from Vienna, Austria

        Verified Buyer

        Comments about oreilly Web Development with Node and Express:

        This book is a great reference to quickly get an overview of node.js and express development. It covers all the subjects you can imagine, and even more. Great!

        (1 of 1 customers found this review helpful)

         
        5.0

        Ten times better than it needs to be!

        By Geronimus

        from Toronto, Canada

        About Me Developer

        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:

          This slim but accessible volume is the perfect starting point for those approaching not only server-side development with Node, but (without beating around the bush) provides solid theoretical grounding for those beginning web development and open-source software development in general.

          The author's extremely helpful running example allows you to follow along and build your understanding as a single project. (Rather than a collection of unrelated exercises.)

          A word of caution: There is a bias towards the UNIX systems, but as the author states, this bias belongs more to the open-source web development industry than Node itself. The author provides as much guidance as he can to make all of the examples work on a Windows box. However, Windows users will have some difficulties with some of the third-party libraries. (Although I admit that working around and through these difficulties also gave me an opportunity to learn an enormous amount about how Node, and my own operating system, works.)

          Ethan Brown is THE teacher I would choose to learn web technologies from.

           
          5.0

          Learned about Node, Express and evweb development in general

          By thierry

          from Belgium

          About Me Developer

          Verified Buyer

          Pros

          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Web Development with Node and Express:

            Bought it to read during a flight, and time was flying! Especially the not expected overall web development concepts were a great bonus, on top of the node & express insights. It clicked, and now I need to reread it with a computer at hand.

            (2 of 2 customers found this review helpful)

             
            5.0

            Perfect introductory book

            By Jakub Vosahlo

            from Velvary, Czech Republic

            About Me Developer

            Verified Reviewer

            Pros

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

            Cons

              Best Uses

              • Novice
              • Student

              Comments about oreilly Web Development with Node and Express:

              I have read a couple of books introducing NodeJS and Express development and in my opinion Ethan Brown exceeds in a couple of areas:

              1. The book is very well written, clearly structured, as a non-native speaker I found it very easy to read, understand and follow. The writing is crystal clear, I did enjoy reading it.

              2. The book contains a lot, and I mean a lot, of topics. For each of them you get introduction to the area (security, testing, REST), practical examples which is easy to follow, recommendations what to do next... Very well structured learning material.

              3. Source code. This is actually a second review I do for this book, the first was not so completely positive. Originally it was difficult to follow a couple of examples in the book while using newest versions of some packages, because newer versions of the libraries did not work in the same way as was described in the book. Author took care of the issue by fixing code repository on github, so it's now quite easy to use all the samples again.

              This is really a book I tend to return to.

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

                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