Beginning Web Development with Node.js
Beginning Web Development with Node.js

Retired

This book is no longer available for sale.

Beginning Web Development with Node.js

Last updated on 2013-10-18

About the Book

There are plenty of blog articles and tutorials available today that show various aspects of web development with Node.js, but it can be difficult to figure out how to piece different elements together and assemble a complete web application. This book will guide you through the development of a web application using the following components.

  • Node.js
  • Express.js Web Framework
  • MongoDB Database
  • Mongoose Database Mapping Utility
  • Passport.js for User Authentication
  • Express Validator for form validation
  • Twitter Bootstrap for the User Interface
  • Connect Flash for Message Passing
  • Mocha and Zombie for Testing

We'll build an application using these components, version our code with Git, push it out to GitHub, and deploy it to a real production environment using Heroku. This book is not an encyclopedic reference of any of these technologies, but rather a simple guide to building a usable application with them.

About the Author

Andrew Patzer
Andrew Patzer

Andrew Patzer has been developing software professionally for the past 20 years. In the early days of Java, Andrew authored several books on the development of server-side Java web applications for Wrox Press and Apress. In the past decade, he has worked with several open source technology stacks to develop web and mobile applications. Most recently, Andrew has been working with Node.js, building web applications utilizing the MEAN stack.

Table of Contents

  • Node and Express
    • A Tour of Node.js
    • The Express Framework
    • Using Git
    • Deploying to Heroku
    • Summary
  • Testing
    • Creating Tests with Mocha
    • Simulating a Browser with Zombie
    • Summary
  • Views
    • View Templating
    • Jade
    • Layouts
    • Using Bootstrap
    • Fixing our Tests
    • Summary
  • Working with Data
    • MongoDB
    • Mongoose
    • Add Some Data
    • Connecting to MongoDB on Heroku
    • Summary
  • Form Handling
    • Adding some Flash
    • Form Validation
    • Add an Edit Form
    • Delete Contacts
    • Summary
  • Users and Authentication
    • Passport
    • User Model
    • Controller Actions
    • View Templates
    • Summary

Authors have earned$8,076,481writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub